================
@@ -2221,6 +2234,22 @@ void CXXNameMangler::manglePrefix(const DeclContext *DC,
bool NoFunction) {
if (mangleSubstitution(ND))
return;
+ // Constructors and destructors can't be represented as a plain GlobalDecl,
+ // and prefix mangling only needs their spelling.
+ if (isa<CXXConstructorDecl>(ND)) {
----------------
efriedma-quic wrote:
Do we need any special handling if the constructor is a template?
https://github.com/llvm/llvm-project/pull/181068
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits