Skip to content

Commit f7cd3fc

Browse files
committed
Apply clang-tidy fixes for performance-for-range-copy in VectorOps.cpp (NFC)
1 parent 59405cd commit f7cd3fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Vector/IR/VectorOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ struct ElideUnitDimsInMultiDimReduction
328328
LogicalResult matchAndRewrite(MultiDimReductionOp reductionOp,
329329
PatternRewriter &rewriter) const override {
330330
ArrayRef<int64_t> shape = reductionOp.getSourceVectorType().getShape();
331-
for (auto dim : enumerate(shape)) {
331+
for (const auto &dim : enumerate(shape)) {
332332
if (reductionOp.isReducedDim(dim.index()) && dim.value() != 1)
333333
return failure();
334334
}

0 commit comments

Comments
 (0)