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

llvm-svn: 221891
This commit is contained in:
Rafael Espindola 2014-11-13 14:37:51 +00:00
parent 0769c0ed0d
commit 1e2e444357
1 changed files with 2 additions and 2 deletions

View File

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