Skip to content

Commit d281db9

Browse files
committed
[MLIR] Apply clang-tidy fixes for modernize-loop-convert in TransformOps.cpp (NFC)
1 parent 57e1846 commit d281db9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Transform/IR/TransformOps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,8 +1639,8 @@ transform::ForeachOp::apply(transform::TransformRewriter &rewriter,
16391639
return a.size() < b.size();
16401640
})->size();
16411641

1642-
for (size_t argIdx = 0; argIdx < payloads.size(); argIdx++)
1643-
payloads[argIdx].resize(numIterations);
1642+
for (auto &payload : payloads)
1643+
payload.resize(numIterations);
16441644
}
16451645

16461646
// As we will be "zipping" over them, check all payloads have the same size.

0 commit comments

Comments
 (0)