[Mlir-commits] [mlir] [mlir][debug] Inherit DISubprogramAttr from DILocalScopeAttr. (PR #156081)
Abid Qadeer
llvmlistbot at llvm.org
Tue Sep 2 05:18:11 PDT 2025
================
@@ -638,7 +638,7 @@ def LLVM_DILocalVariableAttr : LLVM_Attr<"DILocalVariable", "di_local_variable",
def LLVM_DISubprogramAttr : LLVM_Attr<"DISubprogram", "di_subprogram",
[LLVM_DIRecursiveTypeAttrInterface],
- "DIScopeAttr"> {
+ "DILocalScopeAttr"> {
----------------
abidh wrote:
Looking at the code a bit more, the `DILexicalBlockAttr` and `DILexicalBlockFileAttr` have `scope` parameters which are `DIScopeAttr` but probably needs to be `DILocalScopeAttr`. I tried a few quick changes but they soon became more invasive. I would leave them for later PR.
https://github.com/llvm/llvm-project/pull/156081
More information about the Mlir-commits
mailing list