@@ -1022,11 +1022,11 @@ bb0(%0 : $@sil_unmanaged AnyObject):
1022
1022
1023
1023
sil @foo : $@convention(thin) () -> ()
1024
1024
1025
- // CHECK-LABEL: sil [ossa] @test_escape : {{.*}} {
1025
+ // CHECK-LABEL: sil [ossa] @test_escape1 : {{.*}} {
1026
1026
// CHECK: br bb1
1027
1027
// CHECK: end_borrow
1028
- // CHECK-LABEL: } // end sil function 'test_escape '
1029
- sil [ossa] @test_escape : $@convention(thin) () -> () {
1028
+ // CHECK-LABEL: } // end sil function 'test_escape1 '
1029
+ sil [ossa] @test_escape1 : $@convention(thin) () -> () {
1030
1030
bb0:
1031
1031
%13 = function_ref @foo : $@convention(thin) () -> ()
1032
1032
%14 = partial_apply [callee_guaranteed] %13() : $@convention(thin) () -> ()
@@ -1044,6 +1044,26 @@ bb1(%21 : @owned $@noescape @callee_guaranteed () -> (), %22 : @guaranteed $@cal
1044
1044
return %28: $()
1045
1045
}
1046
1046
1047
+ // CHECK-LABEL: sil [ossa] @test_escape2 : {{.*}} {
1048
+ // CHECK: br bb1
1049
+ // CHECK: end_borrow
1050
+ // CHECK-LABEL: } // end sil function 'test_escape2'
1051
+ sil [ossa] @test_escape2 : $@convention(thin) () -> () {
1052
+ bb0:
1053
+ %13 = function_ref @foo : $@convention(thin) () -> ()
1054
+ %14 = partial_apply [callee_guaranteed] %13() : $@convention(thin) () -> ()
1055
+ %15 = convert_escape_to_noescape %14 : $@callee_guaranteed () -> () to $@noescape @callee_guaranteed () -> ()
1056
+ %18 = mark_dependence %15 : $@noescape @callee_guaranteed () -> () on %14 : $@callee_guaranteed () -> ()
1057
+ br bb1(%18 : $@noescape @callee_guaranteed () -> (), %14 : $@callee_guaranteed () -> ())
1058
+
1059
+ bb1(%21 : @owned $@noescape @callee_guaranteed () -> (), %23 : @owned $@callee_guaranteed () -> ()):
1060
+ %27 = apply %21() : $@noescape @callee_guaranteed () -> ()
1061
+ destroy_value %21 : $@noescape @callee_guaranteed () -> ()
1062
+ destroy_value %23 : $@callee_guaranteed () -> ()
1063
+ %28 = tuple ()
1064
+ return %28: $()
1065
+ }
1066
+
1047
1067
sil @use_klass : $@convention(thin) (@guaranteed Klass) -> ()
1048
1068
1049
1069
// CHECK-LABEL: sil [ossa] @test_forwarded_phi1 :
0 commit comments