Skip to content

Commit 3875849

Browse files
committed
Try to fix test for owned on 4.2
1 parent 753248f commit 3875849

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/SILGen/without_actually_escaping_block.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,17 @@ import Foundation
77
typealias Callback = @convention(block) () -> Void
88

99
// 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]]
1312
// CHECK: [[C2:%.*]] = copy_value [[B1]]
1413
// CHECK: [[CVT:%.*]] = convert_function [[C2]] : $@convention(block) @noescape () -> () to $@convention(block) () -> ()
1514
// CHECK: [[B2:%.*]] = begin_borrow [[CVT]]
1615
// CHECK: [[FN:%.*]] = function_ref @$S25without_actually_escaping9testBlock5blockyyyXB_tFyyyXBXEfU_
1716
// CHECK: apply [[FN]]([[B2]])
1817
// CHECK: end_borrow [[B2]] from [[CVT]]
1918
// 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]]
2221
// CHECK: return
2322

2423
func testBlock(block: Callback) {

0 commit comments

Comments
 (0)