================
@@ -1755,6 +1735,51 @@ void CXXNameMangler::mangleUnqualifiedName(
   }
 }
 
+void CXXNameMangler::mangleConstructorName(
+    const NamedDecl *ND, const AbiTagList *AdditionalAbiTags) {
+  const CXXRecordDecl *InheritedFrom = nullptr;
+  TemplateName InheritedTemplateName;
+  const TemplateArgumentList *InheritedTemplateArgs = nullptr;
+  if (auto Inherited =
+          cast<CXXConstructorDecl>(ND)->getInheritedConstructor()) {
----------------
efriedma-quic wrote:

If we're going to assume the ND is actually a CXXConstructorDecl, please make 
mangleConstructorName take a CXXConstructorDecl as an argument, and make the 
caller perform the cast.

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

Reply via email to