[compiler-rt] [compiler-rt] enable pwritev interception on freebsd. (PR #76759)

David CARLIER via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 2 15:28:16 PST 2024


https://github.com/devnexen updated https://github.com/llvm/llvm-project/pull/76759

>From d78f295404767e58e6e90ec327cab47bf8770fbf Mon Sep 17 00:00:00 2001
From: David Carlier <devnexen at gmail.com>
Date: Tue, 2 Jan 2024 22:32:50 +0000
Subject: [PATCH] [compiler-rt] enable pwritev interception on freebsd/netbsd.

---
 .../lib/sanitizer_common/sanitizer_platform_interceptors.h     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
index 289ae661c343f1..0ce4e9351bc1da 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -191,7 +191,8 @@
 
 #define SANITIZER_INTERCEPT_PREADV \
   (SI_FREEBSD || SI_NETBSD || SI_LINUX_NOT_ANDROID)
-#define SANITIZER_INTERCEPT_PWRITEV SI_LINUX_NOT_ANDROID
+#define SANITIZER_INTERCEPT_PWRITEV \
+  (SI_FREEBSD || SI_NETBSD || SI_LINUX_NOT_ANDROID)
 #define SANITIZER_INTERCEPT_PREADV64 SI_GLIBC
 #define SANITIZER_INTERCEPT_PWRITEV64 SI_GLIBC
 



More information about the llvm-commits mailing list