File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -472,7 +472,20 @@ AvailabilityContext ASTContext::getSwift55Availability() {
472472}
473473
474474AvailabilityContext ASTContext::getSwift56Availability () {
475- return getSwiftFutureAvailability ();
475+ auto target = LangOpts.Target ;
476+
477+ if (target.isMacOSX () ) {
478+ return AvailabilityContext (
479+ VersionRange::allGTE (llvm::VersionTuple (12 , 3 , 0 )));
480+ } else if (target.isiOS ()) {
481+ return AvailabilityContext (
482+ VersionRange::allGTE (llvm::VersionTuple (15 , 4 , 0 )));
483+ } else if (target.isWatchOS ()) {
484+ return AvailabilityContext (
485+ VersionRange::allGTE (llvm::VersionTuple (8 , 5 , 0 )));
486+ } else {
487+ return AvailabilityContext::alwaysAvailable ();
488+ }
476489}
477490
478491AvailabilityContext ASTContext::getSwiftFutureAvailability () {
You can’t perform that action at this time.
0 commit comments