mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
trivial micro-optimization: lazily call the virtual method instead of eagerly calling it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172953 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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 #.
|
||||
|
Reference in New Issue
Block a user