[Lldb-commits] [lldb] [clang] Reland "[clang][DebugInfo] Emit global variable definitions for static data members with constant initializers" (PR #71780)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 10 08:08:29 PST 2023
================
@@ -5800,6 +5827,18 @@ void CGDebugInfo::setDwoId(uint64_t Signature) {
}
void CGDebugInfo::finalize() {
+ for (auto const *VD : StaticDataMemberDefinitionsToEmit) {
+ assert(VD->isStaticDataMember());
+
+ if (DeclCache.contains(VD))
+ continue;
+
+ if (!VD->hasInit())
----------------
adrian-prantl wrote:
it's non-obvious why this skip exists, can you add a comment here?
https://github.com/llvm/llvm-project/pull/71780
More information about the lldb-commits
mailing list