projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11d8fda
)
we aren't at the end of stream until we've consumed all the bytes AND all
author
Chris Lattner
<sabre@nondot.org>
Sun, 6 May 2007 08:12:09 +0000
(08:12 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 6 May 2007 08:12:09 +0000
(08:12 +0000)
the bits in those bytes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36861
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Bitcode/BitstreamReader.h
patch
|
blob
|
history
diff --git
a/include/llvm/Bitcode/BitstreamReader.h
b/include/llvm/Bitcode/BitstreamReader.h
index 6f028fba000905a9e820fb91a387fcdd55a60126..86a26c2c20e7a75d6eae1b9c733ce5ef65e73ebf 100644
(file)
--- a/
include/llvm/Bitcode/BitstreamReader.h
+++ b/
include/llvm/Bitcode/BitstreamReader.h
@@
-101,7
+101,9
@@
public:
}
}
- 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 {