Swift: Fix AnyFunctionType name mangling

This commit is contained in:
Jeroen Ketema
2026-04-08 15:42:10 +02:00
parent f7de0abe60
commit 7bf78de167

View File

@@ -314,9 +314,13 @@ SwiftMangledName SwiftMangler::visitAnyFunctionType(const swift::AnyFunctionType
if (type->hasGlobalActor()) {
ret << "_actor" << fetch(type->getGlobalActor());
}
if (type->getIsolation().isErased()) {
const auto& isolation = type->getIsolation();
if (isolation.isErased()) {
ret << "_isolated";
}
if (isolation.isNonIsolatedCaller()) {
ret << "_nonisolatednonsending";
}
// TODO: see if this needs to be used in identifying types, if not it needs to be removed from
// type printing in the Swift compiler code
assert(type->hasExtInfo() && "type must have ext info");