Skip to content

Commit 1ae1460

Browse files
committed
[Test] Fix IRGen/typed_throws_abi.swift on Windows
1 parent 218742a commit 1ae1460

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/IRGen/typed_throws_abi.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct Impl: P {
1515
// CHECK: ret void
1616
// CHECK: [[FAIL]]:
1717
// CHECK: call swiftcc void @"$s16typed_throws_abi5EmptyVACycfC"()
18-
// CHECK: [[ERROR_WITNESS:%.*]] = call ptr @"$s16typed_throws_abi5EmptyVACs5ErrorAAWl"() #12
18+
// CHECK: [[ERROR_WITNESS:%.*]] = call ptr @"$s16typed_throws_abi5EmptyVACs5ErrorAAWl"()
1919
// CHECK: call swiftcc void @swift_willThrowTyped(ptr noalias undef, ptr getelementptr inbounds (<{ ptr, ptr, i64, ptr }>, ptr @"$s16typed_throws_abi5EmptyVMf", i32 0, i32 2), ptr [[ERROR_WITNESS]])
2020
// CHECK: store ptr inttoptr (i64 1 to ptr), ptr %2, align 8
2121
// CHECK: ret void
@@ -32,7 +32,7 @@ struct Impl: P {
3232
// CHECK: ret i64 1
3333
// CHECK: [[FAIL]]:
3434
// CHECK: call swiftcc void @"$s16typed_throws_abi5EmptyVACycfC"()
35-
// CHECK: [[ERROR_WITNESS:%.*]] = call ptr @"$s16typed_throws_abi5EmptyVACs5ErrorAAWl"() #12
35+
// CHECK: [[ERROR_WITNESS:%.*]] = call ptr @"$s16typed_throws_abi5EmptyVACs5ErrorAAWl"()
3636
// CHECK: call swiftcc void @swift_willThrowTyped(ptr noalias undef, ptr getelementptr inbounds (<{ ptr, ptr, i64, ptr }>, ptr @"$s16typed_throws_abi5EmptyVMf", i32 0, i32 2), ptr [[ERROR_WITNESS]])
3737
// CHECK: store ptr inttoptr (i64 1 to ptr), ptr %2, align 8
3838
// CHECK: ret i64 undef
@@ -50,7 +50,7 @@ struct Impl: P {
5050
// CHECK: ret { i64, i64 } { i64 1, i64 2 }
5151
// CHECK: [[FAIL]]:
5252
// CHECK: call swiftcc void @"$s16typed_throws_abi5EmptyVACycfC"()
53-
// CHECK: [[ERROR_WITNESS:%.*]] = call ptr @"$s16typed_throws_abi5EmptyVACs5ErrorAAWl"() #12
53+
// CHECK: [[ERROR_WITNESS:%.*]] = call ptr @"$s16typed_throws_abi5EmptyVACs5ErrorAAWl"()
5454
// CHECK: call swiftcc void @swift_willThrowTyped(ptr noalias undef, ptr getelementptr inbounds (<{ ptr, ptr, i64, ptr }>, ptr @"$s16typed_throws_abi5EmptyVMf", i32 0, i32 2), ptr [[ERROR_WITNESS]])
5555
// CHECK: store ptr inttoptr (i64 1 to ptr), ptr %2, align 8
5656
// CHECK: ret { i64, i64 } undef
@@ -68,7 +68,7 @@ struct Impl: P {
6868
// CHECK: ret { i64, i64, i64 } { i64 1, i64 2, i64 3 }
6969
// CHECK: [[FAIL]]:
7070
// CHECK: call swiftcc void @"$s16typed_throws_abi5EmptyVACycfC"()
71-
// CHECK: [[ERROR_WITNESS:%.*]] = call ptr @"$s16typed_throws_abi5EmptyVACs5ErrorAAWl"() #12
71+
// CHECK: [[ERROR_WITNESS:%.*]] = call ptr @"$s16typed_throws_abi5EmptyVACs5ErrorAAWl"()
7272
// CHECK: call swiftcc void @swift_willThrowTyped(ptr noalias undef, ptr getelementptr inbounds (<{ ptr, ptr, i64, ptr }>, ptr @"$s16typed_throws_abi5EmptyVMf", i32 0, i32 2), ptr [[ERROR_WITNESS]])
7373
// CHECK: store ptr inttoptr (i64 1 to ptr), ptr %2, align 8
7474
// CHECK: ret { i64, i64, i64 } undef
@@ -86,7 +86,7 @@ struct Impl: P {
8686
// CHECK: ret { i64, i64, i64, i64 } { i64 1, i64 2, i64 3, i64 4 }
8787
// CHECK: [[FAIL]]:
8888
// CHECK: call swiftcc void @"$s16typed_throws_abi5EmptyVACycfC"()
89-
// CHECK: [[ERROR_WITNESS:%.*]] = call ptr @"$s16typed_throws_abi5EmptyVACs5ErrorAAWl"() #12
89+
// CHECK: [[ERROR_WITNESS:%.*]] = call ptr @"$s16typed_throws_abi5EmptyVACs5ErrorAAWl"()
9090
// CHECK: call swiftcc void @swift_willThrowTyped(ptr noalias undef, ptr getelementptr inbounds (<{ ptr, ptr, i64, ptr }>, ptr @"$s16typed_throws_abi5EmptyVMf", i32 0, i32 2), ptr [[ERROR_WITNESS]])
9191
// CHECK: store ptr inttoptr (i64 1 to ptr), ptr %2, align 8
9292
// CHECK: ret { i64, i64, i64, i64 } undef
@@ -109,7 +109,7 @@ struct Impl: P {
109109
// CHECK: ret void
110110
// CHECK: [[FAIL]]:
111111
// CHECK: call swiftcc void @"$s16typed_throws_abi5EmptyVACycfC"()
112-
// CHECK: [[ERROR_WITNESS:%.*]] = call ptr @"$s16typed_throws_abi5EmptyVACs5ErrorAAWl"() #12
112+
// CHECK: [[ERROR_WITNESS:%.*]] = call ptr @"$s16typed_throws_abi5EmptyVACs5ErrorAAWl"()
113113
// CHECK: call swiftcc void @swift_willThrowTyped(ptr noalias undef, ptr getelementptr inbounds (<{ ptr, ptr, i64, ptr }>, ptr @"$s16typed_throws_abi5EmptyVMf", i32 0, i32 2), ptr [[ERROR_WITNESS]])
114114
// CHECK: store ptr inttoptr (i64 1 to ptr), ptr %3, align 8
115115
// CHECK: ret void
@@ -215,7 +215,7 @@ struct Impl: P {
215215
return (1, 2, 3, 4)
216216
}
217217

218-
// CHECK: define hidden swiftcc void @"$s16typed_throws_abi4ImplV2g5ySi_S4itSbAA7OneWordVYKF"(ptr noalias nocapture sret(<{ %TSi, %TSi, %TSi, %TSi, %TSi }>) %0, i1 %1, ptr swiftself %2, ptr noalias nocapture swifterror dereferenceable(8) %3, ptr %4) #0 {
218+
// CHECK: define hidden swiftcc void @"$s16typed_throws_abi4ImplV2g5ySi_S4itSbAA7OneWordVYKF"(ptr noalias nocapture sret(<{ %TSi, %TSi, %TSi, %TSi, %TSi }>) %0, i1 %1, ptr swiftself %2, ptr noalias nocapture swifterror dereferenceable(8) %3, ptr %4)
219219
// CHECK: entry:
220220
// CHECK: [[ERROR:%.*]] = alloca %T16typed_throws_abi7OneWordV, align 8
221221
// CHECK: br i1 %1, label %[[SUCCESS:.*]], label %[[FAIL:.*]]
@@ -677,7 +677,7 @@ func callImpl_g5(_ impl: Impl, _ b: Bool) -> (Int, Int, Int, Int, Int) {
677677
@available(SwiftStdlib 6.0, *)
678678
struct ImplAsync: PAsync {
679679

680-
// CHECK: define hidden swifttailcc void @"$s16typed_throws_abi9ImplAsyncV2f0yySbYaAA5EmptyVYKF"(ptr swiftasync %0, i1 %1) #0 {
680+
// CHECK: define hidden swifttailcc void @"$s16typed_throws_abi9ImplAsyncV2f0yySbYaAA5EmptyVYKF"(ptr swiftasync %0, i1 %1)
681681
// CHECK: [[CORO:%.*]] = call ptr @llvm.coro.begin(token {{%.*}}, ptr null)
682682
// CHECK: br i1 %1, label %[[SUCCESS:.*]], label %[[FAIL:.*]]
683683
// CHECK: [[SUCCESS]]:
@@ -776,7 +776,7 @@ struct ImplAsync: PAsync {
776776
return (1, 2, 3, 4)
777777
}
778778

779-
// CHECK: define hidden swifttailcc void @"$s16typed_throws_abi9ImplAsyncV2f5ySi_S4itSbYaAA5EmptyVYKF"(ptr noalias nocapture %0, ptr swiftasync %1, i1 %2, ptr %3) #0 {
779+
// CHECK: define hidden swifttailcc void @"$s16typed_throws_abi9ImplAsyncV2f5ySi_S4itSbYaAA5EmptyVYKF"(ptr noalias nocapture %0, ptr swiftasync %1, i1 %2, ptr %3)
780780
// CHECK: [[CORO:%.*]] = call ptr @llvm.coro.begin(token {{%.*}}, ptr null)
781781
// CHECK: br i1 %2, label %[[SUCCESS:.*]], label %[[FAIL:.*]]
782782
// CHECK: [[SUCCESS]]:
@@ -905,7 +905,7 @@ struct ImplAsync: PAsync {
905905
return (1, 2, 3, 4)
906906
}
907907

908-
// CHECK: define hidden swifttailcc void @"$s16typed_throws_abi9ImplAsyncV2g5ySi_S4itSbYaAA7OneWordVYKF"(ptr noalias nocapture %0, ptr swiftasync %1, i1 %2, ptr %3) #0 {
908+
// CHECK: define hidden swifttailcc void @"$s16typed_throws_abi9ImplAsyncV2g5ySi_S4itSbYaAA7OneWordVYKF"(ptr noalias nocapture %0, ptr swiftasync %1, i1 %2, ptr %3)
909909
// CHECK: [[ERROR:%.*]] = alloca %T16typed_throws_abi7OneWordV, align 8
910910
// CHECK: [[CORO:%.*]] = call ptr @llvm.coro.begin(token {{%.*}}, ptr null)
911911
// CHECK: br i1 %2, label %[[SUCCESS:.*]], label %[[FAIL:.*]]

0 commit comments

Comments
 (0)