[llvm-branch-commits] [clang] [compiler-rt] [llvm] [UBSan] Use -fsanitize-handler-preserve-all-regs in codegen (PR #168645)

Florian Mayer via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Nov 25 18:56:46 PST 2025


================
@@ -9,8 +10,21 @@
 static int Result;
 
 void __ubsan_report_error(const char *kind, uintptr_t caller) {
+// -fsanitize-handler-preserve-all-regs is ignored on other architectures.
+// Prented we called to other handler on those.
+#if defined(PRESERVE) && !defined(__aarch64__) && !defined(__x86_64__)
----------------
fmayer wrote:

Leaving as is. The compiler-rt testing is a mess, we build i368 by just adding `-m32`, so the `REQUIRES` or `XFAIL` don't work.

https://github.com/llvm/llvm-project/pull/168645


More information about the llvm-branch-commits mailing list