This is the correct version of r174802.
authorChris Lattner <sabre@nondot.org>
Sat, 9 Feb 2013 07:37:59 +0000 (07:37 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 9 Feb 2013 07:37:59 +0000 (07:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174804 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Bitcode/BitstreamReader.h

index dabee5473279b245ac1509a311da13940e6fce1c..dfbb5e2a6593fd1885c261056d97613cf26e225d 100644 (file)
@@ -334,7 +334,7 @@ public:
 
     // 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);
@@ -440,7 +440,7 @@ private:
     // 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;