[compiler-rt] tsan: Refine conditions to intercept pthread_cond_t functions (PR #154268)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 19 09:40:04 PDT 2025


================
@@ -341,11 +330,6 @@ void ScopedInterceptor::DisableIgnoresImpl() {
 }
 
 #define TSAN_INTERCEPT(func) INTERCEPT_FUNCTION(func)
-#if SANITIZER_FREEBSD || SANITIZER_NETBSD
-#  define TSAN_INTERCEPT_VER(func, ver) INTERCEPT_FUNCTION(func)
-#else
-#  define TSAN_INTERCEPT_VER(func, ver) INTERCEPT_FUNCTION_VER(func, ver)
-#endif
----------------
thurstond wrote:

Why can these be deleted? Where else would TSAN_INTERCEPT_VER be defined?

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


More information about the llvm-commits mailing list