Skip to content

Commit 40f3295

Browse files
ktosoDougGregor
andauthored
Use requirement isDistributed() check in SILGenPoly.cpp
Co-authored-by: Doug Gregor <[email protected]>
1 parent cb8f0a2 commit 40f3295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILGen/SILGenPoly.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4445,7 +4445,7 @@ void SILGenFunction::emitProtocolWitness(
44454445
if (requirement.hasDecl()) {
44464446
if ((!getActorIsolation(requirement.getDecl()).isDistributedActor()) ||
44474447
(isa<FuncDecl>(requirement.getDecl()) &&
4448-
witness.getFuncDecl()->isDistributed())) {
4448+
requirement.getFuncDecl()->isDistributed())) {
44494449
auto thunk = cast<AbstractFunctionDecl>(witness.getDecl())
44504450
->getDistributedThunk();
44514451
witness = SILDeclRef(thunk).asDistributed();

0 commit comments

Comments
 (0)