Skip to content

Commit d4cc270

Browse files
committed
[tosa] : Update enumerator call-site as per feedback.
1 parent 6dc0911 commit d4cc270

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -754,9 +754,7 @@ struct SliceDynamicSizeCanonicalization
754754
// if size op has -1 indicating dynamic shape but corresponding dim on the
755755
// output is statically known, update size to match with known output dim
756756
// shape
757-
for (const auto i : llvm::enumerate(sliceSizes)) {
758-
int64_t size = i.value();
759-
size_t index = i.index();
757+
for (const auto &[index, size] : llvm::enumerate(sliceSizes)) {
760758
if (size == -1 && !resultType.isDynamicDim(index)) {
761759
sliceSizes[index] = resultType.getDimSize(index);
762760
replaceSliceSize = true;

0 commit comments

Comments
 (0)