We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb8f0a2 commit 40f3295Copy full SHA for 40f3295
lib/SILGen/SILGenPoly.cpp
@@ -4445,7 +4445,7 @@ void SILGenFunction::emitProtocolWitness(
4445
if (requirement.hasDecl()) {
4446
if ((!getActorIsolation(requirement.getDecl()).isDistributedActor()) ||
4447
(isa<FuncDecl>(requirement.getDecl()) &&
4448
- witness.getFuncDecl()->isDistributed())) {
+ requirement.getFuncDecl()->isDistributed())) {
4449
auto thunk = cast<AbstractFunctionDecl>(witness.getDecl())
4450
->getDistributedThunk();
4451
witness = SILDeclRef(thunk).asDistributed();
0 commit comments