Skip to content

Commit c1e20ad

Browse files
committed
test
Created using spr 1.3.7
1 parent 6c8216e commit c1e20ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler-rt/test/ubsan_minimal/TestCases/override-callback.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ void __ubsan_report_error(const char *kind, uintptr_t caller) {
1919
#endif
2020
}
2121

22+
#if defined(__aarch64__) || defined(__x86_64__)
2223
[[clang::preserve_all]] void __ubsan_report_error_preserve(const char *kind,
2324
uintptr_t caller) {
2425
fprintf(stderr, "CUSTOM_CALLBACK_PRESERVE: %s\n", kind);
2526
}
27+
#endif
2628

2729
#if OVERRIDE
2830
void __ubsan_report_error_fatal(const char *kind, uintptr_t caller) {

0 commit comments

Comments
 (0)