PPC: Add some missing V_SET0 patterns
[oota-llvm.git] / unittests / Support / ManagedStatic.cpp
index a4137619f4d70303bfa0b8a1cfc6d00e76183546..1497f4e34082d520fa8b934691be0c34b9893f99 100644 (file)
@@ -19,7 +19,8 @@ using namespace llvm;
 
 namespace {
 
-#ifdef HAVE_PTHREAD_H
+#if LLVM_ENABLE_THREADS != 0 && defined(HAVE_PTHREAD_H) && \
+  !__has_feature(memory_sanitizer)
 namespace test1 {
   llvm::ManagedStatic<int> ms;
   void *helper(void*) {