[llvm-commits] CVS: llvm/include/llvm/Bitcode/BitstreamReader.h
Chris Lattner
sabre at nondot.org
Sun May 6 01:12:28 PDT 2007
Changes in directory llvm/include/llvm/Bitcode:
BitstreamReader.h updated: 1.20 -> 1.21
---
Log message:
we aren't at the end of stream until we've consumed all the bytes AND all
the bits in those bytes.
---
Diffs of the changes: (+3 -1)
BitstreamReader.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Bitcode/BitstreamReader.h
diff -u llvm/include/llvm/Bitcode/BitstreamReader.h:1.20 llvm/include/llvm/Bitcode/BitstreamReader.h:1.21
--- llvm/include/llvm/Bitcode/BitstreamReader.h:1.20 Sat May 5 22:24:19 2007
+++ llvm/include/llvm/Bitcode/BitstreamReader.h Sun May 6 03:12:09 2007
@@ -101,7 +101,9 @@
}
}
- bool AtEndOfStream() const { return NextChar == LastChar; }
+ bool AtEndOfStream() const {
+ return NextChar == LastChar && BitsInCurWord == 0;
+ }
/// GetCurrentBitNo - Return the bit # of the bit we are reading.
uint64_t GetCurrentBitNo() const {
More information about the llvm-commits
mailing list