Skip to content

Commit 7c1ed40

Browse files
committed
[Distributed] the distributed module may not be available
1 parent 0045fe3 commit 7c1ed40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ASTContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2951,7 +2951,7 @@ AnyFunctionType::Param swift::computeSelfParam(AbstractFunctionDecl *AFD,
29512951
auto ext = dyn_cast<ExtensionDecl>(AFD->getDeclContext());
29522952
auto distProto =
29532953
Ctx.getProtocol(KnownProtocolKind::DistributedActor);
2954-
if (ext && ext->getExtendedNominal() &&
2954+
if (distProto && ext && ext->getExtendedNominal() &&
29552955
ext->getExtendedNominal()->getInterfaceType()
29562956
->isEqual(distProto->getInterfaceType())) {
29572957
auto name = CD->getName();

0 commit comments

Comments
 (0)