[PATCH] D36325: Reuse sanitizer_linux for NetBSD
Francis Ricci via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 4 11:40:16 PDT 2017
fjricci added a reviewer: dvyukov.
fjricci added a subscriber: dvyukov.
fjricci added a comment.
Adding @dvyukov for the futex stuff.
================
Comment at: lib/sanitizer_common/sanitizer_linux.cc:30
-#if !SANITIZER_FREEBSD
+#if !SANITIZER_FREEBSD && !SANITIZER_NETBSD
#include <asm/param.h>
----------------
Maybe `#if SANITIZER_LINUX` is clearer?
================
Comment at: lib/sanitizer_common/sanitizer_linux.cc:441
+#if SANITIZER_NETBSD
+ internal_syscall(SYSCALL(gettimeofday), &tv, NULL);
+#else
----------------
What's the difference between this and the non-NETBSD case? Does the cast to uptr make a difference?
Repository:
rL LLVM
https://reviews.llvm.org/D36325
More information about the llvm-commits
mailing list