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 {}
3232
3333sil @unreachableHandler : $@convention(thin) () -> ()
3434
35- // CHECK-LABEL: sil [ossa] @testCompleteOSSALifetimes : $@convention(thin) (@owned FakeOptional<Klass>) -> () {
35+ // CHECK-LABEL: sil [ossa] @testCompleteOSSALifetimes : {{.*}} {
3636// CHECK: [[BOX:%.*]] = alloc_box ${ var FakeOptional<Klass> }, var, name "c"
3737// CHECK: [[BORROW:%.,*]] = begin_borrow [lexical] [[BOX]] : ${ var FakeOptional<Klass> }
3838// CHECK: bb2:
3939// CHECK: apply
4040// CHECK: end_borrow [[BORROW]] : ${ var FakeOptional<Klass> }
4141// CHECK: dealloc_box [dead_end] [[BOX]] : ${ var FakeOptional<Klass> }
4242// CHECK: unreachable
43+ // CHECK-LABEL: } // end sil function 'testCompleteOSSALifetimes'
4344sil [ossa] @testCompleteOSSALifetimes : $@convention(thin) (@owned FakeOptional<Klass>) -> () {
4445bb0(%0 : @owned $FakeOptional<Klass>):
4546 %box = alloc_box ${ var FakeOptional<Klass> }, var, name "c"
7374 return %36 : $()
7475}
7576
76- // CHECK-LABEL: sil [ossa] @testExistentialLifetime : $@convention(thin) (@owned any P) -> @owned AnyObject {
77+ // CHECK-LABEL: sil [ossa] @testExistentialLifetime : {{.*}} {
7778// CHECK-NOT: destroy
79+ // CHECK-LABEL: } // end sil function 'testExistentialLifetime'
7880sil [ossa] @testExistentialLifetime : $@convention(thin) (@owned any P) -> @owned AnyObject {
7981bb0(%0 : @owned $any P):
8082 %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