Fix a nasty off-by one error that only manifests with 64-bit word size (which is
[oota-llvm.git] / include / llvm / Bitcode / BitstreamReader.h
index 56a610883bcab133fe508413450b6c65720b3a21..dabee5473279b245ac1509a311da13940e6fce1c 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);