[llvm-commits] CVS: llvm/include/llvm/Bitcode/BitstreamReader.h
Chris Lattner
sabre at nondot.org
Sat May 5 18:43:56 PDT 2007
Changes in directory llvm/include/llvm/Bitcode:
BitstreamReader.h updated: 1.17 -> 1.18
---
Log message:
Fix a subtle bug that prevented round-tripping 470.lbm
---
Diffs of the changes: (+1 -1)
BitstreamReader.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/include/llvm/Bitcode/BitstreamReader.h
diff -u llvm/include/llvm/Bitcode/BitstreamReader.h:1.17 llvm/include/llvm/Bitcode/BitstreamReader.h:1.18
--- llvm/include/llvm/Bitcode/BitstreamReader.h:1.17 Sat May 5 02:20:34 2007
+++ llvm/include/llvm/Bitcode/BitstreamReader.h Sat May 5 20:43:38 2007
@@ -105,7 +105,7 @@
/// 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.
More information about the llvm-commits
mailing list