summaryrefslogtreecommitdiff
path: root/lib/ubsan
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2018-03-02 07:30:22 +0000
committerKamil Rytarowski <n54@gmx.com>2018-03-02 07:30:22 +0000
commit72f23c7ea3de9fb759c3016f6b92b77924c3e888 (patch)
treec56a0adc8e92b080cf1c72c97e5c0496925981eb /lib/ubsan
parent9008dc9a4e6c3ac1eb7cdd910c8f74099420d911 (diff)
OpenBSD UBsan support / ubsan part
Summary: UBsan, enable OpenBSD platform Patch by: David CARLIER Reviewers: krytarowski, kettenis, visa, vitalybuka Reviewed By: vitalybuka Subscribers: kubamracek, fedor.sergeev, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D43894 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@326543 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ubsan')
-rw-r--r--lib/ubsan/ubsan_platform.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ubsan/ubsan_platform.h b/lib/ubsan/ubsan_platform.h
index d781869f9..3b7021755 100644
--- a/lib/ubsan/ubsan_platform.h
+++ b/lib/ubsan/ubsan_platform.h
@@ -15,7 +15,8 @@
// Other platforms should be easy to add, and probably work as-is.
#if defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__) || \
- defined(__NetBSD__) || (defined(__sun__) && defined(__svr4__)) || \
+ defined(__NetBSD__) || defined(__OpenBSD__) || \
+ (defined(__sun__) && defined(__svr4__)) || \
defined(_WIN32) || defined(__Fuchsia__)
# define CAN_SANITIZE_UB 1
#else