Skip to content

Commit 6e8d7e2

Browse files
committed
[mlir] Apply ClangTidy finding (NFC)
loop variable is copied but only used as const reference; consider making it a const reference
1 parent c8ec807 commit 6e8d7e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ createExpandedTransposeOp(PatternRewriter &rewriter, TransposeOp transposeOp,
817817
Value expandedInput, Value output) {
818818
applyPermutationToVector(reassociation, transposeOp.getPermutation());
819819
SmallVector<int64_t> newPerm;
820-
for (auto reassoc : reassociation) {
820+
for (const auto &reassoc : reassociation) {
821821
for (auto dim : reassoc) {
822822
newPerm.push_back(dim);
823823
}

0 commit comments

Comments
 (0)