================
@@ -1856,6 +1856,18 @@ static GlobalDecl getParentOfLocalEntity(const
DeclContext *DC) {
return GD;
}
+// Build a parent GlobalDecl for unqualified-name mangling, preserving
+// constructor/destructor complete-object structor kinds.
+static GlobalDecl getParentGlobalDecl(const NamedDecl *ND) {
----------------
eiytoq wrote:
Good point. I’ve narrowed the patch to the crash path only (`manglePrefix`) and
removed the broader helper.
https://github.com/llvm/llvm-project/pull/181068
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits