diff options
author | Chris Lattner <sabre@nondot.org> | 2013-02-09 07:37:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2013-02-09 07:37:59 +0000 |
commit | db5e50ddafa3903e9ca9ee4008d6e6fa82f780ea (patch) | |
tree | 1f394af15c4a4f84e13d400d6d6b0c3fbfc5e650 /include | |
parent | a32bd682a0ba4878b89c4d70b189ee3feaa01452 (diff) | |
download | external_llvm-db5e50ddafa3903e9ca9ee4008d6e6fa82f780ea.zip external_llvm-db5e50ddafa3903e9ca9ee4008d6e6fa82f780ea.tar.gz external_llvm-db5e50ddafa3903e9ca9ee4008d6e6fa82f780ea.tar.bz2 |
This is the correct version of r174802.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174804 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Bitcode/BitstreamReader.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Bitcode/BitstreamReader.h b/include/llvm/Bitcode/BitstreamReader.h index dabee54..dfbb5e2 100644 --- a/include/llvm/Bitcode/BitstreamReader.h +++ b/include/llvm/Bitcode/BitstreamReader.h @@ -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; |