summaryrefslogtreecommitdiffstats
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
commit4410bbc9ed569b53fc59dd6b5ee6d06c2aec0938 (patch)
treeac8a51a5225960d0b41ab9a4a49710610287b56f
parent1aea1e7c24951abd022c37a10307b0d59ec98268 (diff)
downloadbcm5719-llvm-4410bbc9ed569b53fc59dd6b5ee6d06c2aec0938.tar.gz
bcm5719-llvm-4410bbc9ed569b53fc59dd6b5ee6d06c2aec0938.zip
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 llvm-svn: 326543
-rw-r--r--compiler-rt/lib/ubsan/ubsan_platform.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/ubsan/ubsan_platform.h b/compiler-rt/lib/ubsan/ubsan_platform.h
index d781869f98e..3b702175542 100644
--- a/compiler-rt/lib/ubsan/ubsan_platform.h
+++ b/compiler-rt/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
OpenPOWER on IntegriCloud