summaryrefslogtreecommitdiffstats
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
commit251d0a3adbd9767fe1c39de715dd07eaf7fd9079 (patch)
tree617021650b568be1fd6c9759fcfd1cb4dae65fea
parentcfb3f8b53ae5b5287faee5f23b4fdc50b0d65924 (diff)
downloadbcm5719-llvm-251d0a3adbd9767fe1c39de715dd07eaf7fd9079.tar.gz
bcm5719-llvm-251d0a3adbd9767fe1c39de715dd07eaf7fd9079.zip
Fix a subtle bug that prevented round-tripping 470.lbm
llvm-svn: 36825
-rw-r--r--llvm/include/llvm/Bitcode/BitstreamReader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Bitcode/BitstreamReader.h b/llvm/include/llvm/Bitcode/BitstreamReader.h
index 4e476f7a45f..e34dd092194 100644
--- a/llvm/include/llvm/Bitcode/BitstreamReader.h
+++ b/llvm/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.
OpenPOWER on IntegriCloud