simplify AnalysisGroup registration, eliminating one typeid call.
[oota-llvm.git] / lib / System / Mutex.cpp
index 44e3332d1791477464cd8f28071b87c01ed2ab3b..467bc8522bb3f67ba7fccb6fb705e45f0901b89d 100644 (file)
@@ -53,7 +53,7 @@ using namespace sys;
 //       is configured into the LIBS variable.
 // Note: this line of code generates a warning if pthread_mutex_init is not
 //       declared with weak linkage. It's safe to ignore the warning.
-static const bool pthread_enabled = static_cast<bool>(pthread_mutex_init);
+static const bool pthread_enabled = true;
 
 // Construct a Mutex using pthread calls
 Mutex::Mutex( bool recursive)