[Mlir-commits] [mlir] [MLIR][LLVM] Fix debug value/declare import in face of landing pads (PR #132871)
Christian Ulmann
llvmlistbot at llvm.org
Mon Mar 24 23:48:41 PDT 2025
================
@@ -2512,7 +2512,22 @@ ModuleImport::processDebugIntrinsic(llvm::DbgVariableIntrinsic *dbgIntr,
Block *dominatedBlock = (*dominatedBlocks.begin())->getBlock();
builder.setInsertionPoint(dominatedBlock->getTerminator());
} else {
- builder.setInsertionPointAfterValue(*argOperand);
+ Value insertPt = *argOperand;
+ if (!op) {
+ // The value might be coming from a phi value and is now a block argument,
----------------
Dinistro wrote:
```suggestion
// The value might be coming from a phi node and is now a block argument,
```
https://github.com/llvm/llvm-project/pull/132871
More information about the Mlir-commits
mailing list