[compiler-rt] [TySan] Make TySan compatible with sanitizer common interceptors (par… (PR #197688)
Dan Blackwell via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 6 09:52:52 PDT 2026
================
@@ -22,13 +22,50 @@
#define TYSAN_INTERCEPT___STRDUP 0
#endif
+#if !SANITIZER_APPLE
+#define TYSAN_INTERCEPT_FUNC(name) \
+ do { \
+ if (!INTERCEPT_FUNCTION(name)) \
+ VReport(1, "TypeSanitizer: failed to intercept '%s'\n", #name); \
+ } while (0)
+#else // OS X interceptors don't need to be initialized with INTERCEPT_FUNCTION.
----------------
DanBlackwell wrote:
NIT: 'OS X' here should probably be 'Apple' or 'Darwin' - I think it has been 'macOS' for a while now :)
https://github.com/llvm/llvm-project/pull/197688
More information about the llvm-commits
mailing list