diff options
Diffstat (limited to 'include/llvm/Bitcode/BitstreamReader.h')
-rw-r--r-- | include/llvm/Bitcode/BitstreamReader.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Bitcode/BitstreamReader.h b/include/llvm/Bitcode/BitstreamReader.h index 0d9bd3e466..847aaade76 100644 --- a/include/llvm/Bitcode/BitstreamReader.h +++ b/include/llvm/Bitcode/BitstreamReader.h @@ -158,7 +158,6 @@ struct BitstreamEntry { BitstreamEntry E; E.Kind = Record; E.ID = AbbrevID; return E; } }; - /// BitstreamCursor - This represents a position within a bitcode file. There /// may be multiple independent cursors reading within one bitstream, each @@ -251,7 +250,7 @@ public: } bool AtEndOfStream() { - return isEndPos(NextChar) && BitsInCurWord == 0; + return BitsInCurWord == 0 && isEndPos(NextChar); } /// getAbbrevIDWidth - Return the number of bits used to encode an abbrev #. |