mirror of
https://github.com/github/codeql.git
synced 2026-05-14 19:29:28 +02:00
Swift: Fix AnyFunctionType name mangling
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user