[Mlir-commits] [mlir] [mlir] Add support for DIGlobalVariable and DIGlobalVariableExpression (PR #73367)
Justin Wilson
llvmlistbot at llvm.org
Fri Nov 24 18:11:07 PST 2023
================
@@ -455,7 +456,7 @@ def LLVM_DbgDeclareOp : LLVM_DbgIntrOp<"dbg.declare", "addr",
let arguments = (ins
LLVM_AnyPointer:$addr,
LLVM_DILocalVariableAttr:$varInfo,
- DefaultValuedAttr<LLVM_DIExpressionAttr, "std::nullopt">:$locationExpr
+ OptionalAttr<LLVM_DIExpressionAttr>:$locationExpr
----------------
waj334 wrote:
I tried to keep it the way you had it originally, but it just didn't generate valid code. It would generate the assignment without the specified default value (locationExpr = ).
https://github.com/llvm/llvm-project/pull/73367
More information about the Mlir-commits
mailing list