================
@@ -2004,7 +1949,12 @@ void CXXNameMangler::mangleLocalName(GlobalDecl GD,
     // Mangle the name relative to the closest enclosing function.
     // equality ok because RD derived from ND above
     if (D == RD) {
-      mangleUnqualifiedName(RD, DC, AdditionalAbiTags);
+      const NamedDecl *PrefixND = getClosurePrefix(RD);
----------------
zahiraam wrote:

This duplicates lines 1968-1971 in the else branch below. Could `PrefixND` be 
computed once for both cases?

https://github.com/llvm/llvm-project/pull/235458
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to