[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.
This commit is contained in:
finagolfin
2025-05-21 03:05:05 +05:30
committed by GitHub
parent 8d15d57253
commit 98c3993503

View File

@@ -31,12 +31,12 @@ entry(%i : $Int32):
// CHECK: entry:
// CHECK: %1 = call swiftcc i32 @leaf_function_no_frame_pointer(i32 %0)
// CHECK: ret i32 %1
// CHECK: }
// CHECK-SYSV: Function Attrs:
// CHECK-SYSV: }
// CHECK-SYSV-macosx: attributes [[ATTR]] = { {{.*}}"frame-pointer"="all"
// CHECK-SYSV-linux-gnu: attributes [[ATTR]] = { {{.*}}"frame-pointer"="all"
// CHECK-SYSV-linux-android: attributes [[ATTR]] = { {{.*}}"frame-pointer"="non-leaf"
// CHECK-WIN: }
// CHECK-WIN: attributes [[ATTR]] = { {{.*}}
// CHECK-ALL: define{{.*}} swiftcc i32 @leaf_function_no_frame_pointer(i32 %0) [[ATTR:#.*]] {