Skip to content

Commit

Permalink
[mlir] Fix ClangTidyPerformance finding (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
akuegel committed Jun 27, 2022
1 parent fd47894 commit ca2933f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
Expand Up @@ -244,7 +244,7 @@ scf::TileUsingSCFForOp::returningMatchAndRewrite(
SmallVector<scf::ForOp> newLoops = replaceLoopNestWithNewYields(
rewriter, tilingResult.loops, op.getDestinationOperands(rewriter),
yieldValueFn);
for (auto loop : llvm::enumerate(tilingResult.loops)) {
for (const auto &loop : llvm::enumerate(tilingResult.loops)) {
rewriter.eraseOp(loop.value());
tilingResult.loops[loop.index()] = newLoops[loop.index()];
}
Expand Down

0 comments on commit ca2933f

Please sign in to comment.