[compiler-rt] [sanitizer] Add cloak_sanitizer_signal_handlers runtime option (PR #162746)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 10 12:40:22 PDT 2025


================
@@ -35,17 +37,22 @@ using namespace __sanitizer;
         Printf(                                                               \
             "Warning: REAL(sigaction_symname) == nullptr. This may happen "   \
             "if you link with ubsan statically. Sigaction will not work.\n"); \
-        return -1;                                                            \
+        ret = -1;                                                             \
+      } else {                                                                \
+        ret = REAL(sigaction_symname)(signum, act, oldact);                   \
----------------
vitalybuka wrote:

unrelated NFC?

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


More information about the llvm-commits mailing list