AST: Implement parsing support for the accepted spelling of @backDeployed for SE-0376.

For source compatibility `@_backDeploy` continues to be accepted as a spelling.

rdar://102792909
This commit is contained in:
Allan Shortlidge
2023-01-31 17:00:18 -08:00
parent df1750d8b7
commit d2524a6de8
20 changed files with 93 additions and 91 deletions

View File

@@ -261,7 +261,7 @@ static void convertOwnershipConventionsGivenParamInfos(
static bool shouldApplyBackDeploymentThunk(ValueDecl *decl, ASTContext &ctx,
ResilienceExpansion expansion) {
auto backDeployBeforeVersion = decl->getBackDeployBeforeOSVersion(ctx);
auto backDeployBeforeVersion = decl->getBackDeployedBeforeOSVersion(ctx);
if (!backDeployBeforeVersion)
return false;
@@ -1139,7 +1139,7 @@ public:
return SILDeclRef(distributedThunk).asDistributed();
}
// A call to `@_backDeploy` function may need to go through a thunk.
// A call to `@backDeployed` function may need to go through a thunk.
if (shouldApplyBackDeploymentThunk(afd, ctx,
SGF.F.getResilienceExpansion())) {
return SILDeclRef(afd).asBackDeploymentKind(