forked from OSchip/llvm-project
Apply clang-tidy fixes for modernize-use-bool-literals in Parser.cpp (NFC)
This commit is contained in:
parent
f38765a813
commit
994a1841eb
|
@ -189,7 +189,7 @@ InFlightDiagnostic Parser::emitWrongTokenError(const Twine &message) {
|
|||
StringRef startOfBuffer(bufferStart, curPtr - bufferStart);
|
||||
|
||||
// Back up over entirely blank lines.
|
||||
while (1) {
|
||||
while (true) {
|
||||
// Back up until we see a \n, but don't look past the buffer start.
|
||||
startOfBuffer = startOfBuffer.rtrim(" \t");
|
||||
|
||||
|
|
Loading…
Reference in New Issue