Skip to content

Commit

Permalink
Fix a nasty off-by one error that only manifests with 64-bit word siz…
Browse files Browse the repository at this point in the history
…e (which is

not enabled yet).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174803 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Feb 9, 2013
1 parent b24f5b7 commit a32bd68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/llvm/Bitcode/BitstreamReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ class BitstreamCursor {

// Skip over any bits that are already consumed.
if (WordBitNo) {
if (sizeof(word_t) > 4)
if (sizeof(word_t) >= 4)
Read64(WordBitNo);
else
Read(WordBitNo);
Expand Down

0 comments on commit a32bd68

Please sign in to comment.