@@ -21,6 +21,7 @@ extension Int: P {}
21
21
sil [ossa] @concrete_callee1 : $@convention(thin) (Int, @owned <τ_0_0> { var τ_0_0 } <Int>, @thin Int.Type, @thick P.Type) -> () {
22
22
bb0(%i : $Int, %b : @owned $<τ_0_0> { var τ_0_0 } <Int>, %m : $@thin Int.Type, %p : $@thick P.Type):
23
23
%12 = tuple ()
24
+ destroy_value %b : $<τ_0_0> { var τ_0_0 } <Int>
24
25
return %12 : $()
25
26
}
26
27
@@ -54,6 +55,7 @@ bb0(%i : $Int, %p : $@thick P.Type):
54
55
sil [ossa] @generic_callee2 : $@convention(thin) <T, U> (@in T, @owned <τ_0_0> { var τ_0_0 } <U>) -> () {
55
56
bb0(%i : $*T, %b : @owned $<τ_0_0> { var τ_0_0 } <U>):
56
57
%12 = tuple ()
58
+ destroy_value %b : $<τ_0_0> { var τ_0_0 } <U>
57
59
return %12 : $()
58
60
}
59
61
@@ -162,6 +164,7 @@ class GenericClass<T, U> {}
162
164
sil [ossa] @generic_callee5 : $@convention(thin) <T, U, V> (@owned GenericClass<T, U>) -> () {
163
165
bb0(%t : @owned $GenericClass<T, U>):
164
166
%12 = tuple ()
167
+ destroy_value %t : $GenericClass<T, U>
165
168
return %12 : $()
166
169
}
167
170
@@ -205,6 +208,8 @@ sil_vtable GenericClass {}
205
208
sil [ossa] @pseudogeneric_callee : $@convention(thin) @pseudogeneric <T : AnyObject, U : AnyObject> (@owned T, @owned U) -> () {
206
209
bb0(%t : @owned $T, %u : @owned $U):
207
210
%12 = tuple ()
211
+ destroy_value %t : $T
212
+ destroy_value %u : $U
208
213
return %12 : $()
209
214
}
210
215
@@ -229,8 +234,8 @@ bb0(%thin : $@convention(thin) () -> (), %c : $@convention(c) () -> (), %block :
229
234
return %12 : $()
230
235
}
231
236
232
- sil [ossa] @function_caller : $@convention(thin) (@convention(thin) () -> (), @convention(c) () -> (), @convention(block) () -> (), @convention(thick) () -> (), @convention(method) () -> (), @convention(witness_method: P) (Int) -> ()) -> @owned @callee_guaranteed () -> () {
233
- bb0(%thin: $@convention(thin) () -> (), %c: $@convention(c) () -> (), %block: @unowned $@convention(block) () -> (), %thick: @unowned $@convention(thick) () -> (), %method: $@convention(method) () -> (), %witness_method: $@convention(witness_method: P) (Int) -> ()):
237
+ sil [ossa] @function_caller : $@convention(thin) (@convention(thin) () -> (), @convention(c) () -> (), @owned @ convention(block) () -> (), @owned @convention(thick) () -> (), @convention(method) () -> (), @convention(witness_method: P) (Int) -> ()) -> @owned @callee_guaranteed () -> () {
238
+ bb0(%thin: $@convention(thin) () -> (), %c: $@convention(c) () -> (), %block: @owned $@convention(block) () -> (), %thick: @owned $@convention(thick) () -> (), %method: $@convention(method) () -> (), %witness_method: $@convention(witness_method: P) (Int) -> ()):
234
239
%f = function_ref @function_callee : $@convention(thin) (@convention(thin) () -> (), @convention(c) () -> (), @convention(block) () -> (), @convention(thick) () -> (), @convention(method) () -> (), @convention(witness_method: P) (Int) -> ()) -> ()
235
240
%result = partial_apply [callee_guaranteed] %f(%thin, %c, %block, %thick, %method, %witness_method) : $@convention(thin) (@convention(thin) () -> (), @convention(c) () -> (), @convention(block) () -> (), @convention(thick) () -> (), @convention(method) () -> (), @convention(witness_method: P) (Int) -> ()) -> ()
236
241
return %result : $@callee_guaranteed () -> ()
0 commit comments