Fix a major typo.
authorOwen Anderson <resistor@mac.com>
Fri, 19 Jun 2009 17:08:20 +0000 (17:08 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 19 Jun 2009 17:08:20 +0000 (17:08 +0000)
Nicolas, this is probably the cause of the failures you were seeing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73770 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/System/Mutex.h

index 2a70ba013a0033dcbd96d8f82608912d42d261f1..0003ef881c85d13ddfeafaea4d1f2fe1aeb1617f 100644 (file)
@@ -89,7 +89,7 @@ namespace llvm
       explicit SmartMutex(bool recursive = true) : MutexImpl(recursive) { }
       
       bool acquire() {
-        if (!mt_only && llvm_is_multithreaded())
+        if (!mt_only || llvm_is_multithreaded())
           return MutexImpl::acquire();
         return true;
       }