File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,15 @@ protocol P : AnyObject {}
32
32
33
33
sil @unreachableHandler : $@convention(thin) () -> ()
34
34
35
- // CHECK-LABEL: sil [ossa] @testCompleteOSSALifetimes : $@convention(thin) (@owned FakeOptional<Klass>) -> () {
35
+ // CHECK-LABEL: sil [ossa] @testCompleteOSSALifetimes : {{.*}} {
36
36
// CHECK: [[BOX:%.*]] = alloc_box ${ var FakeOptional<Klass> }, var, name "c"
37
37
// CHECK: [[BORROW:%.,*]] = begin_borrow [lexical] [[BOX]] : ${ var FakeOptional<Klass> }
38
38
// CHECK: bb2:
39
39
// CHECK: apply
40
40
// CHECK: end_borrow [[BORROW]] : ${ var FakeOptional<Klass> }
41
41
// CHECK: dealloc_box [dead_end] [[BOX]] : ${ var FakeOptional<Klass> }
42
42
// CHECK: unreachable
43
+ // CHECK-LABEL: } // end sil function 'testCompleteOSSALifetimes'
43
44
sil [ossa] @testCompleteOSSALifetimes : $@convention(thin) (@owned FakeOptional<Klass>) -> () {
44
45
bb0(%0 : @owned $FakeOptional<Klass>):
45
46
%box = alloc_box ${ var FakeOptional<Klass> }, var, name "c"
73
74
return %36 : $()
74
75
}
75
76
76
- // CHECK-LABEL: sil [ossa] @testExistentialLifetime : $@convention(thin) (@owned any P) -> @owned AnyObject {
77
+ // CHECK-LABEL: sil [ossa] @testExistentialLifetime : {{.*}} {
77
78
// CHECK-NOT: destroy
79
+ // CHECK-LABEL: } // end sil function 'testExistentialLifetime'
78
80
sil [ossa] @testExistentialLifetime : $@convention(thin) (@owned any P) -> @owned AnyObject {
79
81
bb0(%0 : @owned $any P):
80
82
%1 = open_existential_ref %0 : $any P to $@opened("34B79428-2E49-11ED-901A-8AC134504E1C", any P) Self
You can’t perform that action at this time.
0 commit comments