File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ class HoistAllocStack {
332
332
};
333
333
} // end anonymous namespace
334
334
335
- bool indicatesAvailabilityMacroUse (SILInstruction *I) {
335
+ bool indicatesDynamicAvailabilityCheckUse (SILInstruction *I) {
336
336
auto *Apply = dyn_cast<ApplyInst>(I);
337
337
if (!Apply)
338
338
return false ;
@@ -363,7 +363,7 @@ void HoistAllocStack::collectHoistableInstructions() {
363
363
continue ;
364
364
}
365
365
// Don't perform alloc_stack hoisting in functions with availability.
366
- if (indicatesAvailabilityMacroUse (&Inst)) {
366
+ if (indicatesDynamicAvailabilityCheckUse (&Inst)) {
367
367
AllocStackToHoist.clear ();
368
368
return ;
369
369
}
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ public func _stdlib_isOSVersionAtLeast(
25
25
_ patch: Builtin . Word
26
26
) -> Builtin . Int1 {
27
27
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
28
+ // The call to _swift_stdlib_operatingSystemVersion is used as an indicator
29
+ // that this function was called by a compiler optimization pass. If it is
30
+ // replaced that pass needs to be updated.
28
31
let runningVersion = _swift_stdlib_operatingSystemVersion ( )
29
32
let queryVersion = _SwiftNSOperatingSystemVersion (
30
33
majorVersion: Int ( major) ,
You can’t perform that action at this time.
0 commit comments