mirror of
https://github.com/apple/swift.git
synced 2026-10-20 19:13:47 +02:00
The optimizer already folded `_stdlib_isOSVersionAtLeast()` checks that will always return true. Fold calls to `_stdlib_isVariantOSVersionAtLeast()` and `_stdlib_isOSVersionAtLeastOrVariantVersionAtLeast()` as well, so that unnecessary availability checks can are also removed from zippered macOS libraries and modules built for macCatalyst. This is important because many low level libraries on macOS (the standard library included) are built zippered and therefore were previously not getting the benefit of this optimization. Resolves rdar://154093989.