The OpenBSD UBsan port introduced two typos that broke the Solaris sanitizer build.
authorRainer Orth <ro@gcc.gnu.org>
Tue, 24 Apr 2018 13:00:24 +0000 (13:00 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 24 Apr 2018 13:00:24 +0000 (13:00 +0000)
The following patch restores it, will shortly commit as obvious.

Differential Revision: https://reviews.llvm.org/D46006

llvm-svn: 330712

compiler-rt/lib/interception/interception.h
compiler-rt/lib/sanitizer_common/sanitizer_platform.h

index 778490b..37d56e8 100644 (file)
@@ -19,7 +19,7 @@
 
 #if !SANITIZER_LINUX && !SANITIZER_FREEBSD && !SANITIZER_MAC && \
     !SANITIZER_NETBSD && !SANITIZER_OPENBSD && !SANITIZER_WINDOWS && \
-    !SANITIZER_FUCHSIA && SANITIZER_SOLARIS
+    !SANITIZER_FUCHSIA && !SANITIZER_SOLARIS
 # error "Interception doesn't work on this operating system."
 #endif
 
index 2fec13f..1eec297 100644 (file)
@@ -15,7 +15,7 @@
 
 #if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && \
   !defined(__OpenBSD__) && !defined(__APPLE__) && !defined(_WIN32) && \
-  !defined(__Fuchsia__) && !(defined(__sun__) && defined(__srv4__))
+  !defined(__Fuchsia__) && !(defined(__sun__) && defined(__svr4__))
 # error "This operating system is not supported"
 #endif