Skip to content

Commit

Permalink
[mlir] Apply ClangTidy finding (NFC)
Browse files Browse the repository at this point in the history
loop variable is copied but only used as const reference; consider making it a const reference
  • Loading branch information
akuegel committed Mar 10, 2025
1 parent c8ec807 commit 6e8d7e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ createExpandedTransposeOp(PatternRewriter &rewriter, TransposeOp transposeOp,
Value expandedInput, Value output) {
applyPermutationToVector(reassociation, transposeOp.getPermutation());
SmallVector<int64_t> newPerm;
for (auto reassoc : reassociation) {
for (const auto &reassoc : reassociation) {
for (auto dim : reassoc) {
newPerm.push_back(dim);
}
Expand Down

0 comments on commit 6e8d7e2

Please sign in to comment.