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 @@ -393,7 +393,20 @@ AvailabilityContext ASTContext::getSwift53Availability() {
393
393
}
394
394
395
395
AvailabilityContext ASTContext::getSwift54Availability () {
396
- return getSwiftFutureAvailability ();
396
+ auto target = LangOpts.Target ;
397
+
398
+ if (target.isMacOSX ()) {
399
+ return AvailabilityContext (
400
+ VersionRange::allGTE (llvm::VersionTuple (11 , 3 , 0 )));
401
+ } else if (target.isiOS ()) {
402
+ return AvailabilityContext (
403
+ VersionRange::allGTE (llvm::VersionTuple (14 , 5 , 0 )));
404
+ } else if (target.isWatchOS ()) {
405
+ return AvailabilityContext (
406
+ VersionRange::allGTE (llvm::VersionTuple (7 , 4 , 0 )));
407
+ } else {
408
+ return AvailabilityContext::alwaysAvailable ();
409
+ }
397
410
}
398
411
399
412
AvailabilityContext ASTContext::getSwiftFutureAvailability () {
You can’t perform that action at this time.
0 commit comments