[llvm-commits] [llvm] r73770 - /llvm/trunk/include/llvm/System/Mutex.h

Owen Anderson resistor at mac.com
Fri Jun 19 10:08:40 PDT 2009


Author: resistor
Date: Fri Jun 19 12:08:20 2009
New Revision: 73770

URL: http://llvm.org/viewvc/llvm-project?rev=73770&view=rev
Log:
Fix a major typo.

Nicolas, this is probably the cause of the failures you were seeing.

Modified:
    llvm/trunk/include/llvm/System/Mutex.h

Modified: llvm/trunk/include/llvm/System/Mutex.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/System/Mutex.h?rev=73770&r1=73769&r2=73770&view=diff

==============================================================================
--- llvm/trunk/include/llvm/System/Mutex.h (original)
+++ llvm/trunk/include/llvm/System/Mutex.h Fri Jun 19 12:08:20 2009
@@ -89,7 +89,7 @@
       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;
       }





More information about the llvm-commits mailing list