mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ASTMangler] Pass ASTContext to all instantiations of ASTMangler
This commit is contained in:
@@ -111,7 +111,7 @@ std::string toMangledTypeNameString(const swift::Type &Type) {
|
||||
auto PrintingType = Type;
|
||||
if (Type->hasArchetype())
|
||||
PrintingType = Type->mapTypeOutOfContext();
|
||||
return Mangle::ASTMangler().mangleTypeWithoutPrefix(PrintingType->getCanonicalType());
|
||||
return Mangle::ASTMangler(Type->getASTContext()).mangleTypeWithoutPrefix(PrintingType->getCanonicalType());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user