Skip to content

Commit 4614854

Browse files
committed
Fix a test for difference in betwen macOS and Linux/Windows.
Specifically, I removed an availability flag on two SIL functions.
1 parent 3871d22 commit 4614854

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/SILGen/async_initializer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ func callActorMethodFromGeneric(a: SomeActor) async {
300300
// NI: apply
301301
// NI: } // end sil function '$s12initializers15makeActorInTaskyyYaF'
302302

303-
// NI-NS-LABEL: sil hidden [available 10.15] [ossa] @$s12initializers15makeActorInTaskyyYaF : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor>) -> () {
303+
// NI-NS-LABEL: sil hidden{{.*}} [ossa] @$s12initializers15makeActorInTaskyyYaF : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor>) -> () {
304304
// NI-NS: bb0([[ACTOR:%.*]] : @guaranteed $Optional<any Actor>):
305305
// NI-NS: hop_to_executor [[ACTOR]]
306306
// NI-NS: apply
@@ -330,7 +330,7 @@ func makeActorInTask() async {
330330
// NI: apply
331331
// NI: } // end sil function '$s12initializers21callActorMethodInTask1ayAA04SomeC0C_tYaF'
332332

333-
// NI-NS-LABEL: sil hidden [available 10.15] [ossa] @$s12initializers21callActorMethodInTask1ayAA04SomeC0C_tYaF : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor>, @guaranteed SomeActor) -> () {
333+
// NI-NS-LABEL: sil hidden{{.*}} [ossa] @$s12initializers21callActorMethodInTask1ayAA04SomeC0C_tYaF : $@convention(thin) @async (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor>, @guaranteed SomeActor) -> () {
334334
// NI-NS: bb0([[ACTOR:%.*]] : @guaranteed $Optional<any Actor>, [[ARG:%.*]] : @guaranteed $SomeActor):
335335
// NI-NS: hop_to_executor [[ACTOR]]
336336
// NI-NS: } // end sil function '$s12initializers21callActorMethodInTask1ayAA04SomeC0C_tYaF'

0 commit comments

Comments
 (0)