diff options
Diffstat (limited to 'mlir/lib/Transforms/ConvertToCFG.cpp')
| -rw-r--r-- | mlir/lib/Transforms/ConvertToCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/ConvertToCFG.cpp b/mlir/lib/Transforms/ConvertToCFG.cpp index 247a264cd5c..0ed803db64d 100644 --- a/mlir/lib/Transforms/ConvertToCFG.cpp +++ b/mlir/lib/Transforms/ConvertToCFG.cpp @@ -242,7 +242,7 @@ void FunctionConverter::visitForStmt(ForStmt *forStmt) { // Walking manually because we need custom logic before and after traversing // the list of children. builder.setInsertionPoint(loopBodyFirstBlock); - visitStmtBlock(forStmt); + visitStmtBlock(forStmt->getBody()); // Builder point is currently at the last block of the loop body. Append the // induction variable stepping to this block and branch back to the exit |

