forked from OSchip/llvm-project
Small optimization: once the size is know, we don't have to call fillCurWord.
llvm-svn: 221891
This commit is contained in:
parent
0769c0ed0d
commit
1e2e444357
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue