summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-03-06 08:36:50 +0000
committerMartin Liska <mliska@suse.cz>2019-03-06 08:36:50 +0000
commita25a2c7c9a7e1e328a5bd8274d2d86b1fadc4692 (patch)
tree002f80fde726aa6a9b8d39fd9e701c9c486160b0 /compiler-rt/lib/sanitizer_common
parentaf92b7a3b899ba72b48b35b0006c58b1dfcb43c0 (diff)
downloadbcm5719-llvm-a25a2c7c9a7e1e328a5bd8274d2d86b1fadc4692.tar.gz
bcm5719-llvm-a25a2c7c9a7e1e328a5bd8274d2d86b1fadc4692.zip
Always compare C++ typeinfo (based on libstdc++ implementation).
Differential Revision: https://reviews.llvm.org/D58028 llvm-svn: 355488
Diffstat (limited to 'compiler-rt/lib/sanitizer_common')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_platform.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
index ce3a84af2d8..7ba080e6f47 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
@@ -285,10 +285,10 @@
# define MSC_PREREQ(version) 0
#endif
-#if defined(__arm64__) && SANITIZER_IOS
-# define SANITIZER_NON_UNIQUE_TYPEINFO 1
-#else
+#if SANITIZER_MAC && !(defined(__arm64__) && SANITIZER_IOS)
# define SANITIZER_NON_UNIQUE_TYPEINFO 0
+#else
+# define SANITIZER_NON_UNIQUE_TYPEINFO 1
#endif
// On linux, some architectures had an ABI transition from 64-bit long double
OpenPOWER on IntegriCloud