14
14
unreachable
15
15
}
16
16
17
- // CHECK: define{{( protected)?}} void @throws(%swift.refcounted*, %swift.error**) {{.*}} {
17
+ // CHECK-LABEL : define{{( protected)?}} void @throws(%swift.refcounted*, %swift.error**) {{.*}} {
18
18
sil @throws : $@convention(thin) () -> @error ErrorProtocol {
19
19
// CHECK: [[T0:%.*]] = call %swift.error* @create_error()
20
20
%0 = function_ref @create_error : $@convention(thin) () -> @owned ErrorProtocol
@@ -27,7 +27,7 @@ sil @throws : $@convention(thin) () -> @error ErrorProtocol {
27
27
throw %1 : $ErrorProtocol
28
28
}
29
29
30
- // CHECK: define{{( protected)?}} void @doesnt_throw(%swift.refcounted*, %swift.error**) {{.*}} {
30
+ // CHECK-LABEL : define{{( protected)?}} void @doesnt_throw(%swift.refcounted*, %swift.error**) {{.*}} {
31
31
sil @doesnt_throw : $@convention(thin) () -> @error ErrorProtocol {
32
32
// We don't have to do anything here because the caller always
33
33
// zeroes the error slot before a call.
@@ -39,8 +39,8 @@ sil @doesnt_throw : $@convention(thin) () -> @error ErrorProtocol {
39
39
40
40
sil @try_apply_helper : $@convention(thin) (@owned AnyObject) -> (@owned AnyObject, @error ErrorProtocol)
41
41
42
- // CHECK-objc: define{{( protected)?}} void @try_apply(%objc_object*)
43
- // CHECK-native: define{{( protected)?}} void @try_apply(%swift.refcounted*)
42
+ // CHECK-objc-LABEL : define{{( protected)?}} void @try_apply(%objc_object*)
43
+ // CHECK-native-LABEL : define{{( protected)?}} void @try_apply(%swift.refcounted*)
44
44
sil @try_apply : $@convention(thin) (@owned AnyObject) -> () {
45
45
entry(%0 : $AnyObject):
46
46
// CHECK: [[ERRORSLOT:%.*]] = alloca %swift.error*, align
0 commit comments