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 @@ -512,7 +512,20 @@ AvailabilityContext ASTContext::getSwift56Availability() {
512512}
513513
514514AvailabilityContext ASTContext::getSwift57Availability () {
515- return getSwiftFutureAvailability ();
515+ auto target = LangOpts.Target ;
516+
517+ if (target.isMacOSX ()) {
518+ return AvailabilityContext (
519+ VersionRange::allGTE (llvm::VersionTuple (13 , 0 , 0 )));
520+ } else if (target.isiOS ()) {
521+ return AvailabilityContext (
522+ VersionRange::allGTE (llvm::VersionTuple (16 , 0 , 0 )));
523+ } else if (target.isWatchOS ()) {
524+ return AvailabilityContext (
525+ VersionRange::allGTE (llvm::VersionTuple (9 , 0 , 0 )));
526+ } else {
527+ return AvailabilityContext::alwaysAvailable ();
528+ }
516529}
517530
518531AvailabilityContext ASTContext::getSwiftFutureAvailability () {
You can’t perform that action at this time.
0 commit comments