diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_atomic_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_atomic_test.cc index 4ee816b5d0d2..a4a97c43e00f 100644 --- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_atomic_test.cc +++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_atomic_test.cc @@ -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 void CheckAtomicCompareExchange() { typedef typename T::Type Type; @@ -47,5 +50,6 @@ TEST(SanitizerCommon, AtomicCompareExchangeTest) { CheckAtomicCompareExchange(); CheckAtomicCompareExchange(); } +#endif //!SANITIZER_ANDROID } // namespace __sanitizer