Skip to content

Commit 398e48a

Browse files
committed
[mlir] Apply ClangTidy fix (NFC)
Prefer to use .empty() instead of checking size() == 0.
1 parent 9bd5bfc commit 398e48a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/AsmParser/AttributeParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ ParseResult Parser::parseAttributeDict(NamedAttrList &attributes) {
309309
else
310310
return emitWrongTokenError("expected attribute name");
311311

312-
if (nameId->size() == 0)
312+
if (nameId->empty())
313313
return emitError("expected valid attribute name");
314314

315315
if (!seenKeys.insert(*nameId).second)

0 commit comments

Comments
 (0)