Swift: mangle AnyGenericType

This commit is contained in:
Paolo Tranquilli
2023-03-14 12:09:55 +01:00
parent 348bc964be
commit 476cf72710
2 changed files with 7 additions and 0 deletions

View File

@@ -95,3 +95,9 @@ SwiftMangledName SwiftMangler::visitBuiltinType(const swift::BuiltinType* type)
ret << buffer.str();
return ret;
}
SwiftMangledName SwiftMangler::visitAnyGenericType(const swift::AnyGenericType* type) {
auto ret = initMangled(type);
ret << dispatcher.fetchLabel(type->getDecl());
return ret;
}

View File

@@ -54,6 +54,7 @@ class SwiftMangler : private swift::TypeVisitor<SwiftMangler, SwiftMangledName>,
SwiftMangledName visitModuleType(const swift::ModuleType* type);
SwiftMangledName visitTupleType(const swift::TupleType* type);
SwiftMangledName visitBuiltinType(const swift::BuiltinType* type);
SwiftMangledName visitAnyGenericType(const swift::AnyGenericType* type);
SwiftMangledName visitBuiltinType(const swift::BuiltinType* type);