[llvm] [DwarfDebug] Track abstract entities in DwarfUnit separately (PR #152680)
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 10 22:07:59 PDT 2025
================
@@ -1122,8 +1110,8 @@ void DwarfUnit::constructTypeDIE(DIE &Buffer, const DICompositeType *CTy) {
constructTypeDIE(VariantPart, Composite);
}
} else if (Tag == dwarf::DW_TAG_namelist) {
- auto *Var = dyn_cast<DINode>(Element);
- auto *VarDIE = getDIE(Var);
+ auto *Var = dyn_cast<DIVariable>(Element);
+ auto *VarDIE = getDIEs(Var).getVariableDIE(Var);
----------------
dwblaikie wrote:
Is there some checking we can add to the general DINode map (not the label or variable ones you've added) to ensure labels and variables aren't added to or queried from that map?
https://github.com/llvm/llvm-project/pull/152680
More information about the llvm-commits
mailing list