Skip to content

Commit 7bf78de

Browse files
committed
Swift: Fix AnyFunctionType name mangling
1 parent f7de0ab commit 7bf78de

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

swift/extractor/mangler/SwiftMangler.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,13 @@ SwiftMangledName SwiftMangler::visitAnyFunctionType(const swift::AnyFunctionType
314314
if (type->hasGlobalActor()) {
315315
ret << "_actor" << fetch(type->getGlobalActor());
316316
}
317-
if (type->getIsolation().isErased()) {
317+
const auto& isolation = type->getIsolation();
318+
if (isolation.isErased()) {
318319
ret << "_isolated";
319320
}
321+
if (isolation.isNonIsolatedCaller()) {
322+
ret << "_nonisolatednonsending";
323+
}
320324
// TODO: see if this needs to be used in identifying types, if not it needs to be removed from
321325
// type printing in the Swift compiler code
322326
assert(type->hasExtInfo() && "type must have ext info");

0 commit comments

Comments
 (0)