Skip to content

Commit 7f3cce9

Browse files
committed
Fix for 5.5 branch
1 parent 93d467b commit 7f3cce9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Sema/TypeCheckConcurrency.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,8 @@ static bool isSendableClosure(
699699
return false;
700700
}
701701

702-
bool swift::isSendableType(ModuleDecl *module, Type type) {
702+
bool swift::isSendableType(const DeclContext *dc, Type type) {
703+
auto module = dc->getParentModule();
703704
auto proto = module->getASTContext().getProtocol(KnownProtocolKind::Sendable);
704705
if (!proto)
705706
return true;

0 commit comments

Comments
 (0)