File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -7,18 +7,17 @@ import Foundation
7
7
typealias Callback = @convention ( block) ( ) -> Void
8
8
9
9
// CHECK-LABEL: sil {{.*}} @$S25without_actually_escaping9testBlock5blockyyyXB_tF
10
- // CHECK: bb0([[ARG:%.*]] : @guaranteed $@convention(block) @noescape () -> ()):
11
- // CHECK: [[C1:%.*]] = copy_block [[ARG]]
12
- // CHECK: [[B1:%.*]] = begin_borrow [[C1]]
10
+ // CHECK: bb0([[ARG:%.*]] : @owned $@convention(block) @noescape () -> ()):
11
+ // CHECK: [[B1:%.*]] = begin_borrow [[ARG]]
13
12
// CHECK: [[C2:%.*]] = copy_value [[B1]]
14
13
// CHECK: [[CVT:%.*]] = convert_function [[C2]] : $@convention(block) @noescape () -> () to $@convention(block) () -> ()
15
14
// CHECK: [[B2:%.*]] = begin_borrow [[CVT]]
16
15
// CHECK: [[FN:%.*]] = function_ref @$S25without_actually_escaping9testBlock5blockyyyXB_tFyyyXBXEfU_
17
16
// CHECK: apply [[FN]]([[B2]])
18
17
// CHECK: end_borrow [[B2]] from [[CVT]]
19
18
// CHECK: destroy_value [[CVT]]
20
- // CHECK: end_borrow [[B1]] from [[C1 ]]
21
- // CHECK: destroy_value [[C1 ]]
19
+ // CHECK: end_borrow [[B1]] from [[ARG ]]
20
+ // CHECK: destroy_value [[ARG ]]
22
21
// CHECK: return
23
22
24
23
func testBlock( block: Callback ) {
You can’t perform that action at this time.
0 commit comments