[PATCH] Fix the waitid sanitizer interceptor to work on FreeBSD in 32-bit mode

Ed Maste emaste at freebsd.org
Fri Jul 25 10:09:57 PDT 2014


================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:1545
@@ -1544,1 +1544,3 @@
 }
+// On FreeBSD id_t is always 64-bit wide.
+#if SANITIZER_FREEBSD && (SANITIZER_WORDSIZE == 32)
----------------
Do you mind submitting a FreeBSD bug for this?  It's quite a silly issue to have to work around.

It will be hard to change,  but having a cross-reference between a comment here and a FreeBSD PR will simplify the update when/if we make a change in FreeBSD - for example, a `__FreeBSD_version < 11000000` test may be the sol'n in the future.

http://reviews.llvm.org/D4670






More information about the llvm-commits mailing list