Skip to content

Commit 612f518

Browse files
committed
Generalize tests slightly for Windows
1 parent 8a5e5cc commit 612f518

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

test/SILOptimizer/definite_init_flow_sensitive_actor_self.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ actor A {
2121
self.number = await f(isolatedTo: #isolation)
2222

2323
// Second use of #isolation, which uses 'self' injected into (any Actor)?.
24-
// CHECK: [[ACTOR_COPY:%.*]] = end_init_let_ref %0 : $A
25-
// CHECK: strong_retain [[ACTOR_COPY]] : $A
24+
// CHECK: strong_retain [[ACTOR_COPY:%.*]] : $A
2625
// CHECK: [[ACTOR_EXISTENTIAL:%.*]] = init_existential_ref [[ACTOR_COPY]] : $A : $A, $any Actor
2726
// CHECK: [[ISOLATION_2:%.*]] = enum $Optional<any Actor>, #Optional.some!enumelt, [[ACTOR_EXISTENTIAL]]
2827
// CHECK: [[F_2:%.*]] = function_ref @$s4test1f10isolatedToSiScA_pSgYi_tYaF

test/SILOptimizer/definite_init_flow_sensitive_distributed_actor_self.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ distributed actor NotCodableDA<ActorSystem>
2626
self.number = await f(isolatedTo: #isolation)
2727

2828
// Second use of #isolation, which uses 'self.asLocalActor''
29-
// CHECK: [[AS_LOCAL_ACTOR_FN:%.*]] = function_ref @$s11Distributed0A5ActorPAAE07asLocalB0ScA_pvg : $@convention(method) <τ_0_0 where τ_0_0 : DistributedActor> (@sil_isolated @guaranteed τ_0_0) -> @owned any Actor
30-
// CHECK-NEXT: [[ACTOR_EXISTENTIAL:%.*]] = apply [[AS_LOCAL_ACTOR_FN]]<NotCodableDA<ActorSystem>>(%1) : $@convention(method) <τ_0_0 where τ_0_0 : DistributedActor> (@sil_isolated @guaranteed τ_0_0) -> @owned any Actor
29+
// CHECK: function_ref @$s11Distributed0A5ActorPAAE07asLocalB0ScA_pvg : $@convention(method) <τ_0_0 where τ_0_0 : DistributedActor> (@sil_isolated @guaranteed τ_0_0) -> @owned any Actor
30+
// CHECK-NEXT: [[ACTOR_EXISTENTIAL:%.*]] = apply [[AS_LOCAL_ACTOR_FN:%.*]]<NotCodableDA<ActorSystem>>(%1) : $@convention(method) <τ_0_0 where τ_0_0 : DistributedActor> (@sil_isolated @guaranteed τ_0_0) -> @owned any Actor
3131
// CHECK: [[ISOLATION_2:%.*]] = enum $Optional<any Actor>, #Optional.some!enumelt, [[ACTOR_EXISTENTIAL]]
3232
// CHECK: [[F_2:%.*]] = function_ref @$s4test1f10isolatedToSiScA_pSgYi_tYaF
3333
// CHECK-NEXT: apply [[F_2]]([[ISOLATION_2]])

0 commit comments

Comments
 (0)