Skip to content

Commit

Permalink
genLoopNest fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanradanov committed Oct 19, 2024
1 parent 159a2f4 commit 8afc111
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion flang/lib/Optimizer/Builder/HLFIRTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,6 @@ hlfir::LoopNest hlfir::genLoopNest(mlir::Location loc,
lnops.loopSteps.push_back(one);
}
auto lnOp = builder.create<mlir::omp::LoopNestOp>(loc, lnops);
builder.create<mlir::omp::TerminatorOp>(loc);
mlir::Block *block = builder.createBlock(&lnOp.getRegion());
for (auto extent : llvm::reverse(extents))
block->addArgument(extent.getType(), extent.getLoc());
Expand Down

0 comments on commit 8afc111

Please sign in to comment.