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

Vitaly Buka via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Nov 25 12:50:54 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__)
----------------
vitalybuka wrote:

I see, you keep other modes here as well.

 may forking is better, so I am not sure.?

Leaving decision to you.

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


More information about the llvm-branch-commits mailing list