Skip to content

Commit 9bab057

Browse files
committed
early inc
Signed-off-by: Ivan Butygin <[email protected]>
1 parent 5e9ea27 commit 9bab057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

water/lib/Transforms/WMMAMatrixReuse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class WMMAMatrixReusePass
111111
void processBlock(Block *block) {
112112
SmallVector<Operation *> currentSequence;
113113

114-
for (Operation &op : *block) {
114+
for (Operation &op : llvm::make_early_inc_range(*block)) {
115115
if (isWMMAWithReuse(&op)) {
116116
currentSequence.push_back(&op);
117117
} else if (!currentSequence.empty()) {

0 commit comments

Comments
 (0)