From: Chris Lattner Date: Sat, 9 Feb 2013 07:37:26 +0000 (+0000) Subject: Fix a nasty off-by one error that only manifests with 64-bit word size (which is X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a32bd682a0ba4878b89c4d70b189ee3feaa01452;p=oota-llvm.git Fix a nasty off-by one error that only manifests with 64-bit word size (which is not enabled yet). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174803 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Bitcode/BitstreamReader.h b/include/llvm/Bitcode/BitstreamReader.h index 56a610883bc..dabee547327 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);