[Lldb-commits] [clang] [lldb] [clang][DebugInfo] Emit global variable definitions for static data members with constant initializers (PR #70639)
David Blaikie via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 31 12:03:53 PDT 2023
================
@@ -5883,6 +5907,18 @@ void CGDebugInfo::finalize() {
DBuilder.replaceTemporary(std::move(FwdDecl), cast<llvm::MDNode>(Repl));
}
+ for (auto const *VD : StaticDataMemberDefinitionsToEmit) {
+ assert(VD->isStaticDataMember());
+
+ if (auto It = DeclCache.find(VD); It != DeclCache.end())
----------------
dwblaikie wrote:
DeclCache.contains might be simpler to use/read here?
https://github.com/llvm/llvm-project/pull/70639
More information about the lldb-commits
mailing list