llvm/unittests/Bitcode
Derek Schuff f96e27f256 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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243890 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-03 18:01:50 +00:00
..
BitReaderTest.cpp Fix testing for end of stream in bitstream reader. 2015-08-03 18:01:50 +00:00
BitstreamReaderTest.cpp [Bitcode] AtEndOfStream should only check against the size if it's known. 2014-11-13 00:08:41 +00:00
CMakeLists.txt [Bitcode] AtEndOfStream should only check against the size if it's known. 2014-11-13 00:08:41 +00:00
Makefile BitcodeTests: Fix LINK_COMPONENTS. 2014-08-02 00:12:54 +00:00