[Mlir-commits] [mlir] cd0e938 - [mlir] Apply ClangTidy performance finding (NFC)
Adrian Kuegel
llvmlistbot at llvm.org
Mon May 22 23:54:10 PDT 2023
Author: Adrian Kuegel
Date: 2023-05-23T08:52:53+02:00
New Revision: cd0e9383fc346a8a4ac2d30acf069f4f03fe83d9
URL: https://github.com/llvm/llvm-project/commit/cd0e9383fc346a8a4ac2d30acf069f4f03fe83d9
DIFF: https://github.com/llvm/llvm-project/commit/cd0e9383fc346a8a4ac2d30acf069f4f03fe83d9.diff
LOG: [mlir] Apply ClangTidy performance finding (NFC)
Added:
Modified:
mlir/lib/CAPI/Interfaces/Interfaces.cpp
Removed:
################################################################################
diff --git a/mlir/lib/CAPI/Interfaces/Interfaces.cpp b/mlir/lib/CAPI/Interfaces/Interfaces.cpp
index e597a7bcb4f23..3144a338fa426 100644
--- a/mlir/lib/CAPI/Interfaces/Interfaces.cpp
+++ b/mlir/lib/CAPI/Interfaces/Interfaces.cpp
@@ -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();
More information about the Mlir-commits
mailing list