mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-20 00:43:48 +00:00
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
This commit is contained in:
parent
f5816fbff2
commit
048d0bd4c0
@ -105,7 +105,7 @@ public:
|
|||||||
|
|
||||||
/// GetCurrentBitNo - Return the bit # of the bit we are reading.
|
/// GetCurrentBitNo - Return the bit # of the bit we are reading.
|
||||||
uint64_t GetCurrentBitNo() const {
|
uint64_t GetCurrentBitNo() const {
|
||||||
return (NextChar-FirstChar)*8 + (32-BitsInCurWord);
|
return (NextChar-FirstChar)*8 + ((32-BitsInCurWord) & 31);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// JumpToBit - Reset the stream to the specified bit number.
|
/// JumpToBit - Reset the stream to the specified bit number.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user