Skip to content

Commit 98c3993

Browse files
authored
[test] Fix IRGen/framepointer.sil for the test-simulator CI (#81643)
which generates IR without a llvm.trap function All the normal CI generated this: ``` ret i32 %1 } ; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write) declare void @llvm.trap() #1 attributes #0 = { "frame-pointer"= ``` But the test-simulator CI doesn't for some reason, so just check for the closing brace instead.
1 parent 8d15d57 commit 98c3993

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/IRGen/framepointer.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ entry(%i : $Int32):
3131
// CHECK: entry:
3232
// CHECK: %1 = call swiftcc i32 @leaf_function_no_frame_pointer(i32 %0)
3333
// CHECK: ret i32 %1
34-
// CHECK: }
3534

36-
// CHECK-SYSV: Function Attrs:
35+
// CHECK-SYSV: }
3736
// CHECK-SYSV-macosx: attributes [[ATTR]] = { {{.*}}"frame-pointer"="all"
3837
// CHECK-SYSV-linux-gnu: attributes [[ATTR]] = { {{.*}}"frame-pointer"="all"
3938
// CHECK-SYSV-linux-android: attributes [[ATTR]] = { {{.*}}"frame-pointer"="non-leaf"
39+
// CHECK-WIN: }
4040
// CHECK-WIN: attributes [[ATTR]] = { {{.*}}
4141

4242
// CHECK-ALL: define{{.*}} swiftcc i32 @leaf_function_no_frame_pointer(i32 %0) [[ATTR:#.*]] {

0 commit comments

Comments
 (0)