[mlir] Apply ClangTidy readability fix.

Use .empty() instead of checking for size() == 0.
This commit is contained in:
Adrian Kuegel 2022-08-24 10:34:26 +02:00
parent d3b14ccafb
commit 0db8a140f6
1 changed files with 1 additions and 1 deletions

View File

@ -1861,7 +1861,7 @@ void AsmPrinter::Impl::printAttribute(Attribute attr,
} else if (auto denseArrayAttr = attr.dyn_cast<DenseArrayBaseAttr>()) {
typeElision = AttrTypeElision::Must;
os << "array<" << denseArrayAttr.getType().getElementType();
if (denseArrayAttr.size())
if (!denseArrayAttr.empty())
os << ": ";
denseArrayAttr.printWithoutBraces(os);
os << ">";