diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-06 01:43:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-06 01:43:38 +0000 |
commit | 048d0bd4c0e92db88a508b5fc107136a1262b6bc (patch) | |
tree | 115adb00e92b4a854fd6a470ad49f8d61e419b5f | |
parent | f5816fbff2025c11953f159a5b46829e851d8231 (diff) | |
download | external_llvm-048d0bd4c0e92db88a508b5fc107136a1262b6bc.zip external_llvm-048d0bd4c0e92db88a508b5fc107136a1262b6bc.tar.gz external_llvm-048d0bd4c0e92db88a508b5fc107136a1262b6bc.tar.bz2 |
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
-rw-r--r-- | include/llvm/Bitcode/BitstreamReader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Bitcode/BitstreamReader.h b/include/llvm/Bitcode/BitstreamReader.h index 4e476f7..e34dd09 100644 --- a/include/llvm/Bitcode/BitstreamReader.h +++ b/include/llvm/Bitcode/BitstreamReader.h @@ -105,7 +105,7 @@ public: /// GetCurrentBitNo - Return the bit # of the bit we are reading. 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. |