mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Introduce a Swift runtime availability domain.
Add support for the `Swift` availability domain, which represents availability with respect to the Swift runtime. Use of this domain is restricted by the experimental feature `SwiftRuntimeAvailability`.
This commit is contained in:
@@ -869,11 +869,12 @@ private:
|
||||
return AvailabilityQuery::dynamic(variantSpec->getDomain(), primaryRange,
|
||||
variantRange);
|
||||
|
||||
case AvailabilityDomain::Kind::SwiftRuntime:
|
||||
case AvailabilityDomain::Kind::Platform:
|
||||
// Platform checks are always dynamic. The SIL optimizer is responsible
|
||||
// eliminating these checks when it can prove that they can never fail
|
||||
// (due to the deployment target). We can't perform that analysis here
|
||||
// because it may depend on inlining.
|
||||
// Platform and Swift runtime checks are always dynamic. The SIL optimizer
|
||||
// is responsible eliminating these checks when it can prove that they can
|
||||
// never fail (due to the deployment target). We can't perform that
|
||||
// analysis here because it may depend on inlining.
|
||||
return AvailabilityQuery::dynamic(domain, primaryRange, variantRange);
|
||||
case AvailabilityDomain::Kind::Custom:
|
||||
auto customDomain = domain.getCustomDomain();
|
||||
|
||||
Reference in New Issue
Block a user