From 1b19a50cdb292e144ea27bef1cd135efaa6548df Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Fri, 19 Jun 2009 17:08:20 +0000 Subject: [PATCH] Fix a major typo. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/System/Mutex.h b/include/llvm/System/Mutex.h index 2a70ba013a0..0003ef881c8 100644 --- a/include/llvm/System/Mutex.h +++ b/include/llvm/System/Mutex.h @@ -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; }