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

@@ -5380,18 +5380,17 @@ llvm::Error DeclDeserializer::deserializeDeclCommon() {
break;
}
case decls_block::BackDeploy_DECL_ATTR: {
case decls_block::BackDeployed_DECL_ATTR: {
bool isImplicit;
unsigned Platform;
DEF_VER_TUPLE_PIECES(Version);
serialization::decls_block::BackDeployDeclAttrLayout::readRecord(
serialization::decls_block::BackDeployedDeclAttrLayout::readRecord(
scratch, isImplicit, LIST_VER_TUPLE_PIECES(Version), Platform);
llvm::VersionTuple Version;
DECODE_VER_TUPLE(Version)
Attr = new (ctx) BackDeployAttr(SourceLoc(), SourceRange(),
(PlatformKind)Platform,
Version,
isImplicit);
Attr = new (ctx)
BackDeployedAttr(SourceLoc(), SourceRange(), (PlatformKind)Platform,
Version, isImplicit);
break;
}