Skip to content

Commit f59bac8

Browse files
authored
Merge pull request #69792 from DougGregor/typed-throws-fix-test
[Typed throws] Generalize test
2 parents baf06a1 + d2d4423 commit f59bac8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/IRGen/typed_throws.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func buildMetatype() -> Any.Type {
3232
}
3333

3434
// CHECK-NOMANGLE: define linkonce_odr hidden swiftcc %swift.metadata_response @"$sySi12typed_throws10MyBigErrorOYKcMa"
35-
// CHECK-NOMANGLE: call ptr @swift_getExtendedFunctionTypeMetadata({{i32|i64}} 2231369729, {{i32|i64}} 0, ptr [[PARAMS:%.*]], ptr null, ptr getelementptr inbounds (%swift.full_existential_type, ptr @"$sytN", i32 0, i32 1), ptr null, i32 1, ptr getelementptr inbounds (<{ ptr, ptr, i64, ptr }>, ptr {{.*}}@"$s12typed_throws10MyBigErrorOMf"
35+
// CHECK-NOMANGLE: @swift_getExtendedFunctionTypeMetadata({{.*}}@"$s12typed_throws10MyBigErrorOMf"
3636

3737
protocol P {
3838
associatedtype A
@@ -63,5 +63,5 @@ func reabstractAsConcreteThrowing() throws -> Int {
6363
}
6464

6565
// CHECK-LABEL: define {{.*}} swiftcc void @"$sSi12typed_throws10MyBigErrorOIgdzo_SiACIegrzr_TR"(ptr noalias nocapture sret(%TSi) %0, ptr %1, ptr %2, ptr swiftself %3, ptr noalias nocapture swifterror dereferenceable(8) %4, ptr %5)
66-
// CHECK: call swiftcc i64 %1
66+
// CHECK: call swiftcc {{i32|i64}} %1
6767
// CHECK: br i1 %8, label %typed.error.load, label %10

0 commit comments

Comments
 (0)