diff options
-rw-r--r-- | include/llvm/System/Mutex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/System/Mutex.h b/include/llvm/System/Mutex.h index 2a70ba0..0003ef8 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; } |