================ @@ -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()) ---------------- Michael137 wrote:
I'll update the `EmitGlobalVariable` docs to clarify that we need an initialiser, otherwise behaviour is undefined https://github.com/llvm/llvm-project/pull/71780 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits