llvm.org GIT mirror llvm / a9fbbb4
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 Rafael Espindola 6 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
226226 bool AtEndOfStream() {
227227 if (BitsInCurWord != 0)
228228 return false;
229 if (Size != 0 && Size == NextChar)
230 return true;
229 if (Size != 0)
230 return Size == NextChar;
231231 fillCurWord();
232232 return BitsInCurWord == 0;
233233 }