[llvm] r174804 - This is the correct version of r174802.

Chris Lattner sabre at nondot.org
Fri Feb 8 23:38:00 PST 2013


Author: lattner
Date: Sat Feb  9 01:37:59 2013
New Revision: 174804

URL: http://llvm.org/viewvc/llvm-project?rev=174804&view=rev
Log:
This is the correct version of r174802.

Modified:
    llvm/trunk/include/llvm/Bitcode/BitstreamReader.h

Modified: llvm/trunk/include/llvm/Bitcode/BitstreamReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/BitstreamReader.h?rev=174804&r1=174803&r2=174804&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/BitstreamReader.h (original)
+++ llvm/trunk/include/llvm/Bitcode/BitstreamReader.h Sat Feb  9 01:37:59 2013
@@ -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;





More information about the llvm-commits mailing list