mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Distributed] distributed func checks now work in protocols & dont crash
This commit is contained in:
@@ -793,7 +793,6 @@ FuncDecl *GetDistributedThunkRequest::evaluate(
|
||||
return nullptr;
|
||||
|
||||
auto &C = distributedTarget->getASTContext();
|
||||
auto DC = distributedTarget->getDeclContext();
|
||||
|
||||
if (!getConcreteReplacementForProtocolActorSystemType(distributedTarget)) {
|
||||
// Don't synthesize thunks, unless there is a *concrete* ActorSystem.
|
||||
@@ -817,9 +816,6 @@ FuncDecl *GetDistributedThunkRequest::evaluate(
|
||||
if (!C.getLoadedModule(C.Id_Distributed))
|
||||
return nullptr;
|
||||
|
||||
auto nominal = DC->getSelfNominalTypeDecl(); // NOTE: Always from DC
|
||||
assert(nominal);
|
||||
|
||||
// --- Prepare the "distributed thunk" which does the "maybe remote" dance:
|
||||
return createDistributedThunkFunction(func);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user