aboutsummaryrefslogtreecommitdiff
path: root/devel/llvm17/files/patch-lib_sanitizer__common_sanitizer__platform__interceptors.h
blob: 7664513d6c8953aafd36e67b9d1c5df7a4e9f572 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h.orig
+++ compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -576,7 +576,7 @@
 #define SANITIZER_INTERCEPT_PTHREAD_ATFORK SI_NETBSD
 #define SANITIZER_INTERCEPT_GETENTROPY SI_FREEBSD
 #define SANITIZER_INTERCEPT_QSORT \
-  (SI_POSIX && !SI_IOSSIM && !SI_WATCHOS && !SI_TVOS && !SI_ANDROID)
+  (SI_POSIX && !SI_IOSSIM && !SI_WATCHOS && !SI_TVOS && !SI_ANDROID && !SI_FREEBSD)
 #define SANITIZER_INTERCEPT_QSORT_R SI_GLIBC
 // sigaltstack on i386 macOS cannot be intercepted due to setjmp()
 // calling it and assuming that it does not clobber registers.