llvm.org GIT mirror llvm / 048d0bd
Fix a subtle bug that prevented round-tripping 470.lbm git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36825 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
104104
105105 /// GetCurrentBitNo - Return the bit # of the bit we are reading.
106106 uint64_t GetCurrentBitNo() const {
107 return (NextChar-FirstChar)*8 + (32-BitsInCurWord);
107 return (NextChar-FirstChar)*8 + ((32-BitsInCurWord) & 31);
108108 }
109109
110110 /// JumpToBit - Reset the stream to the specified bit number.