File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -828,14 +828,12 @@ std::string ASTMangler::mangleAutoDiffGeneratedDeclaration(
828
828
// Since we don't have a distinct mangling for sugared generic
829
829
// parameter types, we must desugar them here.
830
830
static Type getTypeForDWARFMangling (Type t) {
831
- return t.subst (
832
- [](SubstitutableType *t) -> Type {
833
- if (t->isRootParameterPack ()) {
834
- return PackType::getSingletonPackExpansion (t->getCanonicalType ());
835
- }
836
- return t->getCanonicalType ();
837
- },
838
- MakeAbstractConformanceForGenericType ());
831
+ return t.transformRec (
832
+ [](TypeBase *t) -> std::optional<Type> {
833
+ if (isa<GenericTypeParamType>(t))
834
+ return t->getCanonicalType ();
835
+ return std::nullopt;
836
+ });
839
837
}
840
838
841
839
std::string ASTMangler::mangleTypeForDebugger (Type Ty, GenericSignature sig) {
You can’t perform that action at this time.
0 commit comments