Skip to content

Commit eacd063

Browse files
committed
[Test] Updated FC'd PAF names.
Now that thunks are introduced for async dynamic functions which are partially applied, the application forwarders of those thunks will have different names.
1 parent 7adb119 commit eacd063

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/IRGen/async/run-partialapply-capture-generic_conformer-and-generic-to-void.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ sil_witness_table ObserverImpl : Observer module main {
5555
associated_type Result : ()
5656
}
5757

58-
// CHECK-LL: define internal swift{{(tail)?}}cc void @"$sTA"(%swift.task* {{%[0-9]+}}, %swift.executor* {{%[0-9]+}}, %swift.context* swiftasync {{%[0-9]+}}) {{#[0-9]*}}
58+
// CHECK-LL: define internal swift{{(tail)?}}cc void @"$s14witness_methodTwTA"(%swift.task* {{%[0-9]+}}, %swift.executor* {{%[0-9]+}}, %swift.context* swiftasync {{%[0-9]+}}) {{#[0-9]*}}
5959
sil hidden @witness_method : $@async @convention(thin) <S where S : Observable><O where O : Observer, S.Result == O.Result> (@in S) -> @owned @async @callee_owned (@in O) -> () {
6060
bb0(%0 : $*S):
6161
%1 = witness_method $S, #Observable.subscribe : $@async @convention(witness_method: Observable) <τ_0_0 where τ_0_0 : Observable><τ_1_0 where τ_1_0 : Observer, τ_0_0.Result == τ_1_0.Result> (@in τ_1_0, @in_guaranteed τ_0_0) -> ()

test/IRGen/async/run-partialapply-capture-int64-to-generic.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ bb0(%x : $Int32, %f : $@async @callee_owned (Int32) -> @out T):
2525
return %p : $@async @callee_owned () -> @out T
2626
}
2727

28-
// CHECK-LL: define internal swift{{(tail)?}}cc void @"$sTA"(%swift.task* {{%[0-9]+}}, %swift.executor* {{%[0-9]+}}, %swift.context* swiftasync {{%[0-9]+}}) {{#[0-9]*}}
28+
// CHECK-LL: define internal swift{{(tail)?}}cc void @"$s36partial_apply_dynamic_with_out_paramTwTA"(%swift.task* {{%[0-9]+}}, %swift.executor* {{%[0-9]+}}, %swift.context* swiftasync {{%[0-9]+}}) {{#[0-9]*}}
2929
// CHECK-LL: define internal swift{{(tail)?}}cc void @"$s6calleeTA"(%swift.task* {{%[0-9]+}}, %swift.executor* {{%[0-9]+}}, %swift.context* swiftasync {{%[0-9]+}}) {{#[0-9]*}}
3030
sil @callee : $@async @convention(thin) <T> (Int32, @in_guaranteed T) -> @out T {
3131
entry(%out_t : $*T, %x : $Int32, %in_t : $*T):

0 commit comments

Comments
 (0)