@@ -152,14 +152,15 @@ public func testCallerToCaller(_ x: nonisolated(nonsending) @escaping () async -
152
152
153
153
// CHECK-LABEL: sil [ossa] @$s21attr_execution_silgen24testCallerLocalVariablesyyyyYaYCcYaF : $@convention(thin) @async (@guaranteed @async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor>) -> ()) -> () {
154
154
// CHECK: bb0([[PARAM:%.*]] : @guaranteed $@async @callee_guaranteed (@sil_isolated @sil_implicit_leading_param @guaranteed Optional<any Actor>) -> ()):
155
+ // CHECK: [[ACTOR:%.*]] = enum $Optional<any Actor>, #Optional.none!enumelt
156
+ // CHECK: hop_to_executor [[ACTOR]]
155
157
// CHECK: [[PARAM_COPY:%.*]] = copy_value [[PARAM]]
156
158
// CHECK: [[Y:%.*]] = move_value [lexical] [var_decl] [[PARAM_COPY]]
157
159
// CHECK: [[Y_B:%.*]] = begin_borrow [[Y]]
158
160
// CHECK: [[Y_B_C:%.*]] = copy_value [[Y_B]]
159
161
// CHECK: [[Y2:%.*]] = move_value [lexical] [var_decl] [[Y_B_C]]
160
162
// CHECK: [[Y2_B:%.*]] = begin_borrow [[Y2]]
161
163
// CHECK: [[Y2_B_C:%.*]] = copy_value [[Y2_B]]
162
- // CHECK: [[ACTOR:%.*]] = enum $Optional<any Actor>, #Optional.none!enumelt
163
164
// CHECK: [[Y2_B_C_B:%.*]] = begin_borrow [[Y2_B_C]]
164
165
// CHECK: apply [[Y2_B_C_B]]([[ACTOR]])
165
166
// CHECK: } // end sil function '$s21attr_execution_silgen24testCallerLocalVariablesyyyyYaYCcYaF'
@@ -522,7 +523,7 @@ func testThatClosuresAssumeIsolation(fn: inout nonisolated(nonsending) (Int) asy
522
523
testParam { 42 }
523
524
524
525
// CHECK-LABEL: sil private [ossa] @$s21attr_execution_silgen31testThatClosuresAssumeIsolation2fnyySiYaYCcz_tFyyYaXEfU1_ : $@convention(thin) @async () -> ()
525
- // CHECK: [[GENERIC_EXECUTOR:%.*]] = enum $Optional<Builtin.Executor >, #Optional.none!enumelt
526
+ // CHECK: [[GENERIC_EXECUTOR:%.*]] = enum $Optional<any Actor >, #Optional.none!enumelt
526
527
// CHECK: hop_to_executor [[GENERIC_EXECUTOR]]
527
528
testParam { @concurrent in 42 }
528
529
@@ -538,7 +539,7 @@ func testThatClosuresAssumeIsolation(fn: inout nonisolated(nonsending) (Int) asy
538
539
fn = { _ in }
539
540
540
541
// CHECK-LABEL: sil private [ossa] @$s21attr_execution_silgen31testThatClosuresAssumeIsolation2fnyySiYaYCcz_tFySiYacfU3_ : $@convention(thin) @async (Int) -> ()
541
- // CHECK: [[GENERIC_EXECUTOR:%.*]] = enum $Optional<Builtin.Executor >, #Optional.none!enumelt
542
+ // CHECK: [[GENERIC_EXECUTOR:%.*]] = enum $Optional<any Actor >, #Optional.none!enumelt
542
543
// CHECK: hop_to_executor [[GENERIC_EXECUTOR]]
543
544
// CHECK: } // end sil function '$s21attr_execution_silgen31testThatClosuresAssumeIsolation2fnyySiYaYCcz_tFySiYacfU3_'
544
545
@@ -557,7 +558,7 @@ func testNoIsolationTransfer() {
557
558
func testErasure( @_inheritActorContext _: @escaping @isolated ( any) ( ) async -> Void ) { }
558
559
559
560
// CHECK-LABEL: sil private [ossa] @$s21attr_execution_silgen23testNoIsolationTransferyyFyyYacfU_ : $@convention(thin) @async (@guaranteed Optional<any Actor>) -> ()
560
- // CHECK: [[GENERIC_EXECUTOR:%.*]] = enum $Optional<Builtin.Executor >, #Optional.none!enumelt
561
+ // CHECK: [[GENERIC_EXECUTOR:%.*]] = enum $Optional<any Actor >, #Optional.none!enumelt
561
562
// CHECK: hop_to_executor [[GENERIC_EXECUTOR]]
562
563
testErasure { @concurrent in }
563
564
}
@@ -566,7 +567,7 @@ func testClosuresDontAssumeGlobalActorWithMarkedAsConcurrent() {
566
567
func test( _ fn: @MainActor ( ) async -> Void ) { }
567
568
568
569
// CHECK-LABEL: sil private [ossa] @$s21attr_execution_silgen55testClosuresDontAssumeGlobalActorWithMarkedAsConcurrentyyFyyYaYbXEfU_
569
- // CHECK: [[GENERIC_EXECUTOR:%.*]] = enum $Optional<Builtin.Executor >, #Optional.none!enumelt
570
+ // CHECK: [[GENERIC_EXECUTOR:%.*]] = enum $Optional<any Actor >, #Optional.none!enumelt
570
571
// CHECK-NEXT: hop_to_executor [[GENERIC_EXECUTOR]]
571
572
// CHECK: } // end sil function '$s21attr_execution_silgen55testClosuresDontAssumeGlobalActorWithMarkedAsConcurrentyyFyyYaYbXEfU_'
572
573
test { @Sendable @concurrent in
0 commit comments