diff options
| author | Derek Schuff <dschuff@google.com> | 2015-08-03 18:01:50 +0000 |
|---|---|---|
| committer | Derek Schuff <dschuff@google.com> | 2015-08-03 18:01:50 +0000 |
| commit | b4c1c28c6e1b8d9b7a1c6a9e62e46bb93bd3ef40 (patch) | |
| tree | 3ac2af2e1fa9ce7ca8d18107b93d73b384b6c4fc /llvm/test/Bitcode | |
| parent | ac3a95f347f6f0780bf353d313a77e7a358f4864 (diff) | |
| download | bcm5719-llvm-b4c1c28c6e1b8d9b7a1c6a9e62e46bb93bd3ef40.tar.gz bcm5719-llvm-b4c1c28c6e1b8d9b7a1c6a9e62e46bb93bd3ef40.zip | |
Fix testing for end of stream in bitstream reader.
This fixes a bug found while working on the bitcode reader. In
particular, the method BitstreamReader::AtEndOfStream doesn't always
behave correctly when processing a data streamer. The method
fillCurWord doesn't properly set CurWord/BitsInCurWord if the data
streamer was already at eof, but GetBytes had not yet set the
ObjectSize field of the streaming memory object.
This patch fixes this problem, and provides a test to show that
this problem has been fixed.
Patch by Karl Schimpf.
Differential Revision: http://reviews.llvm.org/D11391
llvm-svn: 243890
Diffstat (limited to 'llvm/test/Bitcode')
| -rw-r--r-- | llvm/test/Bitcode/Inputs/invalid-abbrev.bc | bin | 129 -> 132 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/Inputs/invalid-abbrev.bc b/llvm/test/Bitcode/Inputs/invalid-abbrev.bc Binary files differindex 4e8f3944b84..06c2fd38cb2 100644 --- a/llvm/test/Bitcode/Inputs/invalid-abbrev.bc +++ b/llvm/test/Bitcode/Inputs/invalid-abbrev.bc |

