[llvm] [clang] [llvm][DebugInfo] DWARFv5: static data members declarations are DW_TAG_variable (PR #72234)
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 14 15:55:17 PST 2023
================
@@ -1681,7 +1681,8 @@ CGDebugInfo::CreateRecordStaticField(const VarDecl *Var, llvm::DIType *RecordTy,
llvm::DINode::DIFlags Flags = getAccessFlag(Var->getAccess(), RD);
auto Align = getDeclAlignIfRequired(Var, CGM.getContext());
llvm::DIDerivedType *GV = DBuilder.createStaticMemberType(
- RecordTy, VName, VUnit, LineNumber, VTy, Flags, /* Val */ nullptr, Align);
+ RecordTy, VName, VUnit, LineNumber, VTy, Flags, /* Val */ nullptr,
+ llvm::dwarf::DW_TAG_member, Align);
----------------
adrian-prantl wrote:
Assuming this _changes_ the IR.
https://github.com/llvm/llvm-project/pull/72234
More information about the llvm-commits
mailing list