[Mlir-commits] [mlir] [mlir][debug] Convert DbgIntrOp to DebugRecords directly. (PR #154926)
Abid Qadeer
llvmlistbot at llvm.org
Tue Aug 26 04:04:19 PDT 2025
================
@@ -711,6 +695,28 @@ def LLVM_DbgDeclareOp : LLVM_DbgIntrOp<"dbg.declare", "addr", [
LLVM_DILocalVariableAttr:$varInfo,
DefaultValuedAttr<LLVM_DIExpressionAttr, "{}">:$locationExpr
);
+ let llvmBuilder = [{
+ // Debug intrinsics without debug locations are invalid.
+ if(!builder.getCurrentDebugLocation())
+ return success();
----------------
abidh wrote:
I agree with this comment. I can change this in a separate PR.
https://github.com/llvm/llvm-project/pull/154926
More information about the Mlir-commits
mailing list