[flang-commits] [flang] [Flang][OpenMP] Prepare lowering for composite construct support (PR #97430)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Tue Jul 2 12:37:03 PDT 2024
================
@@ -72,11 +72,8 @@ void DataSharingProcessor::processStep2(mlir::Operation *op, bool isLoop) {
firOpBuilder.setInsertionPointAfter(op);
insertDeallocs();
} else {
- // insert dummy instruction to mark the insertion position
- mlir::Value undefMarker = firOpBuilder.create<fir::UndefOp>(
- op->getLoc(), firOpBuilder.getIndexType());
+ mlir::OpBuilder::InsertionGuard guard(firOpBuilder);
insertDeallocs();
- firOpBuilder.setInsertionPointAfter(undefMarker.getDefiningOp());
----------------
kparzysz wrote:
This is an independent change that could be in a separate PR.
https://github.com/llvm/llvm-project/pull/97430
More information about the flang-commits
mailing list