[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 14:33:42 PST 2024


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

None

>From 89946d305d4ea2cdd69eb6cf64fd765596919921 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.

---
 .../lib/sanitizer_common/sanitizer_platform_interceptors.h      | 2 +-
 1 file changed, 1 insertion(+), 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..6dcf4f72244b9d 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -191,7 +191,7 @@
 
 #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_LINUX_NOT_ANDROID)
 #define SANITIZER_INTERCEPT_PREADV64 SI_GLIBC
 #define SANITIZER_INTERCEPT_PWRITEV64 SI_GLIBC
 



More information about the llvm-commits mailing list