Skip to content

Commit 53d5254

Browse files
committed
Narrow this *even further* to Sendable, because it's the only pre-6.0 marker protocol
1 parent 075846d commit 53d5254

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/IRGen/GenProto.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,8 @@ static bool protocolCanHaveDependentConformance(ProtocolDecl *proto) {
10441044
ASTContext &ctx = proto->getASTContext();
10451045
if (auto runtimeCompatVersion = getSwiftRuntimeCompatibilityVersionForTarget(
10461046
ctx.LangOpts.Target)) {
1047-
if (runtimeCompatVersion < llvm::VersionTuple(6, 0))
1047+
if (runtimeCompatVersion < llvm::VersionTuple(6, 0) &&
1048+
proto->isSpecificProtocol(KnownProtocolKind::Sendable))
10481049
return true;
10491050
}
10501051

0 commit comments

Comments
 (0)