Skip to content

Commit

Permalink
This is the correct version of r174802.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174804 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Feb 9, 2013
1 parent a32bd68 commit db5e50d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -440,7 +440,7 @@ class BitstreamCursor {
// If word_t is 64-bits and if we've read less than 32 bits, just dump
// the bits we have up to the next 32-bit boundary.
if (sizeof(word_t) > 4 &&
BitsInCurWord > 32) {
BitsInCurWord >= 32) {
CurWord >>= BitsInCurWord-32;
BitsInCurWord = 32;
return;
Expand Down

0 comments on commit db5e50d

Please sign in to comment.