@@ -1548,6 +1548,7 @@ entry(%instance : @owned $C):
1548
1548
}
1549
1549
1550
1550
1551
+ // End lifetime before unreachable inst.
1551
1552
// CHECK-LABEL: sil [ossa] @unreachable_5 : $@convention(thin) (@owned C) -> () {
1552
1553
// CHECK: {{bb[0-9]+}}([[INSTANCE:%[^,]+]] : @owned $C):
1553
1554
// CHECK: [[LIFETIME:%[^,]+]] = begin_borrow [lexical] [[INSTANCE]]
@@ -1567,6 +1568,7 @@ exit:
1567
1568
unreachable
1568
1569
}
1569
1570
1571
+ // Bail out if alloc_stack is in unreachable block.
1570
1572
// CHECK-LABEL: sil [ossa] @unreachable_6 : $@convention(thin) (@owned C) -> () {
1571
1573
// CHECK: alloc_stack [lexical]
1572
1574
// CHECK-LABEL: } // end sil function 'unreachable_6'
@@ -1585,6 +1587,7 @@ exit:
1585
1587
}
1586
1588
1587
1589
1590
+ // Bail out if alloc_stack is in unreachable block.
1588
1591
// CHECK-LABEL: sil [ossa] @unreachable_7 : $@convention(thin) (@owned C) -> () {
1589
1592
// CHECK: alloc_stack [lexical]
1590
1593
// CHECK-LABEL: } // end sil function 'unreachable_7'
@@ -1606,7 +1609,7 @@ exit:
1606
1609
return %res : $()
1607
1610
}
1608
1611
1609
-
1612
+ // Bail out if alloc_stack is in unreachable block.
1610
1613
// CHECK-LABEL: sil [ossa] @unreachable_8 : $@convention(thin) (@owned C) -> () {
1611
1614
// CHECK: alloc_stack [lexical]
1612
1615
// CHECK-LABEL: } // end sil function 'unreachable_8'
@@ -1632,7 +1635,7 @@ exit:
1632
1635
return %res : $()
1633
1636
}
1634
1637
1635
-
1638
+ // End lifetime after loop which is followed by unreachable.
1636
1639
// CHECK-LABEL: sil [ossa] @unreachable_loop_1 : $@convention(thin) () -> () {
1637
1640
// CHECK: {{bb[0-9]+}}:
1638
1641
// CHECK: [[GET_C:%[^,]+]] = function_ref @getC : $@convention(thin) () -> @owned C
@@ -1672,7 +1675,7 @@ die:
1672
1675
unreachable
1673
1676
}
1674
1677
1675
-
1678
+ // Bail out if alloc_stack is in unreachable block.
1676
1679
// CHECK-LABEL: sil [ossa] @unreachable_loop_2 : $@convention(thin) () -> () {
1677
1680
// CHECK: alloc_stack [lexical]
1678
1681
// CHECK-LABEL: } // end sil function 'unreachable_loop_2'
@@ -1697,7 +1700,7 @@ die:
1697
1700
unreachable
1698
1701
}
1699
1702
1700
-
1703
+ // Bail out if alloc_stack is in unreachable block.
1701
1704
// CHECK-LABEL: sil [ossa] @unreachable_loop_3 : $@convention(thin) () -> () {
1702
1705
// CHECK: alloc_stack [lexical]
1703
1706
// CHECK-LABEL: } // end sil function 'unreachable_loop_3'
0 commit comments