aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@google.com>2015-08-03 18:01:50 +0000
committerDerek Schuff <dschuff@google.com>2015-08-03 18:01:50 +0000
commitb4c1c28c6e1b8d9b7a1c6a9e62e46bb93bd3ef40 (patch)
tree3ac2af2e1fa9ce7ca8d18107b93d73b384b6c4fc /llvm/lib/CodeGen/StackProtector.cpp
parentac3a95f347f6f0780bf353d313a77e7a358f4864 (diff)
downloadllvm-b4c1c28c6e1b8d9b7a1c6a9e62e46bb93bd3ef40.zip
llvm-b4c1c28c6e1b8d9b7a1c6a9e62e46bb93bd3ef40.tar.gz
llvm-b4c1c28c6e1b8d9b7a1c6a9e62e46bb93bd3ef40.tar.bz2
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/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions