Skip to content

Commit 994a184

Browse files
committed
Apply clang-tidy fixes for modernize-use-bool-literals in Parser.cpp (NFC)
1 parent f38765a commit 994a184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Parser/Parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ InFlightDiagnostic Parser::emitWrongTokenError(const Twine &message) {
189189
StringRef startOfBuffer(bufferStart, curPtr - bufferStart);
190190

191191
// Back up over entirely blank lines.
192-
while (1) {
192+
while (true) {
193193
// Back up until we see a \n, but don't look past the buffer start.
194194
startOfBuffer = startOfBuffer.rtrim(" \t");
195195

0 commit comments

Comments
 (0)