From 8afc111a25fff4532eb0e18210ca49c0a55eba7f Mon Sep 17 00:00:00 2001 From: Ivan Radanov Ivanov Date: Sun, 20 Oct 2024 01:35:01 +0900 Subject: [PATCH] genLoopNest fix --- flang/lib/Optimizer/Builder/HLFIRTools.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/flang/lib/Optimizer/Builder/HLFIRTools.cpp b/flang/lib/Optimizer/Builder/HLFIRTools.cpp index 333331378841ed..7425ccf7fc0e30 100644 --- a/flang/lib/Optimizer/Builder/HLFIRTools.cpp +++ b/flang/lib/Optimizer/Builder/HLFIRTools.cpp @@ -878,7 +878,6 @@ hlfir::LoopNest hlfir::genLoopNest(mlir::Location loc, lnops.loopSteps.push_back(one); } auto lnOp = builder.create(loc, lnops); - builder.create(loc); mlir::Block *block = builder.createBlock(&lnOp.getRegion()); for (auto extent : llvm::reverse(extents)) block->addArgument(extent.getType(), extent.getLoc());