Skip to content

Commit bd7e3ab

Browse files
committed
Another fix for the 5.5 branch
1 parent 0c9478c commit bd7e3ab

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/Sema/TypeCheckConcurrency.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3685,11 +3685,12 @@ NormalProtocolConformance *GetImplicitSendableRequest::evaluate(
36853685
if (classDecl) {
36863686
if (Type superclass = classDecl->getSuperclass()) {
36873687
auto classModule = classDecl->getParentModule();
3688-
if (TypeChecker::conformsToKnownProtocol(
3689-
classDecl->mapTypeIntoContext(superclass),
3690-
KnownProtocolKind::Sendable,
3691-
classModule))
3692-
return nullptr;
3688+
if (auto proto = nominal->getASTContext().getProtocol(KnownProtocolKind::Sendable)) {
3689+
if (TypeChecker::conformsToProtocol(
3690+
classDecl->mapTypeIntoContext(superclass),
3691+
proto, classDecl))
3692+
return nullptr;
3693+
}
36933694
}
36943695
}
36953696

0 commit comments

Comments
 (0)