Skip to content

Commit bb8b636

Browse files
committed
fix comment
1 parent 66956df commit bb8b636

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,8 +1790,8 @@ mlir::scf::tileAndFuseConsumerOfSlice(RewriterBase &rewriter,
17901790
loc, newRegionArg, resultOffsets[index], resultSizes[index],
17911791
SmallVector<OpFoldResult>(resultOffsets[index].size(),
17921792
rewriter.getIndexAttr(1)));
1793-
// Make C++ 17 happy, otherwise it will throw error `captured structured
1794-
// bindings are a C++20 extension`.
1793+
// Make a copy of index to avoid a capturing structured binding, which
1794+
// is a C++20 extension.
17951795
auto dstNumber = index;
17961796
rewriter.modifyOpInPlace(tiledDestStyleOp, [&]() {
17971797
tiledDestStyleOp.getDpsInitsMutable()[dstNumber].set(destSlice);

0 commit comments

Comments
 (0)