Skip to content

Commit f45eb9e

Browse files
committed
Merge pull request #2881 from swiftix/master
2 parents cb39e7f + 10653a4 commit f45eb9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/IRGen/errors.sil

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ entry:
1414
unreachable
1515
}
1616

17-
// CHECK: define{{( protected)?}} void @throws(%swift.refcounted*, %swift.error**) {{.*}} {
17+
// CHECK-LABEL: define{{( protected)?}} void @throws(%swift.refcounted*, %swift.error**) {{.*}} {
1818
sil @throws : $@convention(thin) () -> @error ErrorProtocol {
1919
// CHECK: [[T0:%.*]] = call %swift.error* @create_error()
2020
%0 = function_ref @create_error : $@convention(thin) () -> @owned ErrorProtocol
@@ -27,7 +27,7 @@ sil @throws : $@convention(thin) () -> @error ErrorProtocol {
2727
throw %1 : $ErrorProtocol
2828
}
2929

30-
// CHECK: define{{( protected)?}} void @doesnt_throw(%swift.refcounted*, %swift.error**) {{.*}} {
30+
// CHECK-LABEL: define{{( protected)?}} void @doesnt_throw(%swift.refcounted*, %swift.error**) {{.*}} {
3131
sil @doesnt_throw : $@convention(thin) () -> @error ErrorProtocol {
3232
// We don't have to do anything here because the caller always
3333
// zeroes the error slot before a call.
@@ -39,8 +39,8 @@ sil @doesnt_throw : $@convention(thin) () -> @error ErrorProtocol {
3939

4040
sil @try_apply_helper : $@convention(thin) (@owned AnyObject) -> (@owned AnyObject, @error ErrorProtocol)
4141

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*)
4444
sil @try_apply : $@convention(thin) (@owned AnyObject) -> () {
4545
entry(%0 : $AnyObject):
4646
// CHECK: [[ERRORSLOT:%.*]] = alloca %swift.error*, align

0 commit comments

Comments
 (0)