aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-06 01:43:38 +0000
committerChris Lattner <sabre@nondot.org>2007-05-06 01:43:38 +0000
commit048d0bd4c0e92db88a508b5fc107136a1262b6bc (patch)
tree115adb00e92b4a854fd6a470ad49f8d61e419b5f /include
parentf5816fbff2025c11953f159a5b46829e851d8231 (diff)
downloadexternal_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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Bitcode/BitstreamReader.h2
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.