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
This commit is contained in:
Chris Lattner 2013-02-09 07:37:26 +00:00
parent b24f5b7c08
commit a32bd682a0

View 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);