[mlir] Apply ClangTidy performance finding (NFC)

This commit is contained in:
Adrian Kuegel
2023-05-23 08:52:53 +02:00
parent e74a4fe317
commit cd0e9383fc

View File

@@ -152,7 +152,7 @@ MlirLogicalResult mlirInferShapedTypeOpInterfaceInferReturnTypes(
bool hasRank;
intptr_t rank;
const int64_t *shapeData;
for (ShapedTypeComponents t : inferredTypeComponents) {
for (const ShapedTypeComponents &t : inferredTypeComponents) {
if (t.hasRank()) {
hasRank = true;
rank = t.getDims().size();