We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Sendable
1 parent d78143e commit b81f23eCopy full SHA for b81f23e
lib/IRGen/GenProto.cpp
@@ -1048,7 +1048,8 @@ static bool protocolCanHaveDependentConformance(ProtocolDecl *proto) {
1048
ASTContext &ctx = proto->getASTContext();
1049
if (auto runtimeCompatVersion = getSwiftRuntimeCompatibilityVersionForTarget(
1050
ctx.LangOpts.Target)) {
1051
- if (runtimeCompatVersion < llvm::VersionTuple(6, 0))
+ if (runtimeCompatVersion < llvm::VersionTuple(6, 0) &&
1052
+ proto->isSpecificProtocol(KnownProtocolKind::Sendable))
1053
return true;
1054
}
1055
0 commit comments