llvm.org GIT mirror llvm / 9850b57
we aren't at the end of stream until we've consumed all the bytes AND all the bits in those bytes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36861 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
100100 }
101101 }
102102
103 bool AtEndOfStream() const { return NextChar == LastChar; }
103 bool AtEndOfStream() const {
104 return NextChar == LastChar && BitsInCurWord == 0;
105 }
104106
105107 /// GetCurrentBitNo - Return the bit # of the bit we are reading.
106108 uint64_t GetCurrentBitNo() const {