[compiler-rt] r326543 - OpenBSD UBsan support / ubsan part

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 1 23:30:22 PST 2018


Author: kamil
Date: Thu Mar  1 23:30:22 2018
New Revision: 326543

URL: http://llvm.org/viewvc/llvm-project?rev=326543&view=rev
Log:
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

Modified:
    compiler-rt/trunk/lib/ubsan/ubsan_platform.h

Modified: compiler-rt/trunk/lib/ubsan/ubsan_platform.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ubsan/ubsan_platform.h?rev=326543&r1=326542&r2=326543&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/ubsan_platform.h (original)
+++ compiler-rt/trunk/lib/ubsan/ubsan_platform.h Thu Mar  1 23:30:22 2018
@@ -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




More information about the llvm-commits mailing list