Skip to content

Commit b81f23e

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

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
@@ -1048,7 +1048,8 @@ static bool protocolCanHaveDependentConformance(ProtocolDecl *proto) {
10481048
ASTContext &ctx = proto->getASTContext();
10491049
if (auto runtimeCompatVersion = getSwiftRuntimeCompatibilityVersionForTarget(
10501050
ctx.LangOpts.Target)) {
1051-
if (runtimeCompatVersion < llvm::VersionTuple(6, 0))
1051+
if (runtimeCompatVersion < llvm::VersionTuple(6, 0) &&
1052+
proto->isSpecificProtocol(KnownProtocolKind::Sendable))
10521053
return true;
10531054
}
10541055

0 commit comments

Comments
 (0)