mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
523e573d43
The runtime function `swift_stdlib_isStackAllocationSafe()` never returns a value other than false, so calling it and checking availability in order to determine whether it is safe to do so are unnecessary overhead for the current implementation. This overhead is especially noticable on macOS currently because standard library availability checks are not elided by the optimizer when inlined into clients due to the standard library being built zippered for macCatalyst. If `swift_stdlib_isStackAllocationSafe()` ever becomes non-trivial, we can reintroduce the check. Resolves rdar://174020289.