aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/ManagedStatic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/ManagedStatic.cpp')
-rw-r--r--lib/Support/ManagedStatic.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Support/ManagedStatic.cpp b/lib/Support/ManagedStatic.cpp
index 056b6c06c1..a3b2bcc66a 100644
--- a/lib/Support/ManagedStatic.cpp
+++ b/lib/Support/ManagedStatic.cpp
@@ -68,12 +68,13 @@ void ManagedStaticBase::destroy() const {
DeleterFn = 0;
}
-void llvm::llvm_start_multithreaded() {
+bool llvm::llvm_start_multithreaded() {
#if LLVM_MULTITHREADED
assert(ManagedStaticMutex == 0 && "Multithreaded LLVM already initialized!");
ManagedStaticMutex = new sys::Mutex(true);
+ return true;
#else
- assert(0 && "LLVM built without multithreading support!");
+ return false;
#endif
}