mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 03:50:17 +08:00
[mlir] Apply ClangTidy performance finding (NFC)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user