[mlir] Apply ClangTidy readability fix.
Use .empty() instead of checking for size() == 0.
This commit is contained in:
parent
d3b14ccafb
commit
0db8a140f6
|
@ -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 << ">";
|
||||
|
|
Loading…
Reference in New Issue