Small optimization: once the size is know, we don't have to call fillCurWord.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221891 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2014-11-13 14:37:51 +00:00
parent dbe68adeb2
commit a9fbbb48bc

View File

@ -227,8 +227,8 @@ public:
bool AtEndOfStream() { bool AtEndOfStream() {
if (BitsInCurWord != 0) if (BitsInCurWord != 0)
return false; return false;
if (Size != 0 && Size == NextChar) if (Size != 0)
return true; return Size == NextChar;
fillCurWord(); fillCurWord();
return BitsInCurWord == 0; return BitsInCurWord == 0;
} }