Apply clang-tidy fixes for modernize-use-bool-literals in Parser.cpp (NFC)

This commit is contained in:
Mehdi Amini 2022-05-16 10:33:00 +00:00
parent f38765a813
commit 994a1841eb
1 changed files with 1 additions and 1 deletions

View File

@ -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");