summaryrefslogtreecommitdiff
path: root/lib/ubsan/ubsan_platform.h
diff options
context:
space:
mode:
authorBill Seurer <seurer@linux.vnet.ibm.com>2015-04-01 15:33:22 +0000
committerBill Seurer <seurer@linux.vnet.ibm.com>2015-04-01 15:33:22 +0000
commit024b02f5c618b030ee4db03dbaed0653046d8018 (patch)
treeae3fc43bf8ea2386dcc7aa9edb032f8abe0acc1c /lib/ubsan/ubsan_platform.h
parentc53dd083f8ad7b66c27f04b858589a855aeadfaf (diff)
[PPC64]This activates UBSan for the power architecture.
One test case is updated to allow for differences between power and other architectures in behavior when returning from main in certain instances http://reviews.llvm.org/D8743 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@233813 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ubsan/ubsan_platform.h')
-rw-r--r--lib/ubsan/ubsan_platform.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ubsan/ubsan_platform.h b/lib/ubsan/ubsan_platform.h
index efb7974d4..83fb42b3b 100644
--- a/lib/ubsan/ubsan_platform.h
+++ b/lib/ubsan/ubsan_platform.h
@@ -16,7 +16,7 @@
// Other platforms should be easy to add, and probably work as-is.
#if (defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__)) && \
(defined(__x86_64__) || defined(__i386__) || defined(__arm__) || \
- defined(__aarch64__) || defined(__mips__))
+ defined(__aarch64__) || defined(__mips__) || defined(__powerpc64__))
# define CAN_SANITIZE_UB 1
#else
# define CAN_SANITIZE_UB 0