[compiler-rt] r177998 - [Sanitizer] Disable atomic_test on Android, where it crashes Clang.

Alexey Samsonov samsonov at google.com
Tue Mar 26 01:55:38 PDT 2013


Author: samsonov
Date: Tue Mar 26 03:55:38 2013
New Revision: 177998

URL: http://llvm.org/viewvc/llvm-project?rev=177998&view=rev
Log:
[Sanitizer] Disable atomic_test on Android, where it crashes Clang.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_atomic_test.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_atomic_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_atomic_test.cc?rev=177998&r1=177997&r2=177998&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_atomic_test.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_atomic_test.cc Tue Mar 26 03:55:38 2013
@@ -15,6 +15,9 @@
 
 namespace __sanitizer {
 
+// Clang crashes while compiling this test for Android:
+// http://llvm.org/bugs/show_bug.cgi?id=15587
+#if !SANITIZER_ANDROID
 template<typename T>
 void CheckAtomicCompareExchange() {
   typedef typename T::Type Type;
@@ -47,5 +50,6 @@ TEST(SanitizerCommon, AtomicCompareExcha
   CheckAtomicCompareExchange<atomic_uint64_t>();
   CheckAtomicCompareExchange<atomic_uintptr_t>();
 }
+#endif  //!SANITIZER_ANDROID
 
 }  // namespace __sanitizer





More information about the llvm-commits mailing list