Apply clang-tidy fixes for performance-for-range-copy in PadOpInterchange.cpp (NFC)

This commit is contained in:
Mehdi Amini 2022-01-14 07:22:30 +00:00
parent 813156eaa9
commit 3b6943e66c
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ struct FusePadTensorOp : OpRewritePattern<PadTensorOp> {
SmallVector<OpFoldResult> offsets = padOp.getMixedLowPad();
SmallVector<OpFoldResult> sizes;
sizes.reserve(offsets.size());
for (auto shape : llvm::enumerate(
for (const auto &shape : llvm::enumerate(
source.getType().cast<RankedTensorType>().getShape())) {
if (ShapedType::isDynamic(shape.value())) {
sizes.push_back(