summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-28 00:42:29 +0000
committerChris Lattner <sabre@nondot.org>2006-08-28 00:42:29 +0000
commit97c9f20c52a3b9ec01a3646a15f909798acf5192 (patch)
treee28ebdb00e956d1219b01e56235d15db25e47a8f /llvm/lib/System
parent80f843d31d6bf058c69f2f369b3cbf1b38fa1ca4 (diff)
downloadbcm5719-llvm-97c9f20c52a3b9ec01a3646a15f909798acf5192.tar.gz
bcm5719-llvm-97c9f20c52a3b9ec01a3646a15f909798acf5192.zip
simplify AnalysisGroup registration, eliminating one typeid call.
llvm-svn: 29932
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/Mutex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Mutex.cpp b/llvm/lib/System/Mutex.cpp
index 44e3332d179..467bc8522bb 100644
--- a/llvm/lib/System/Mutex.cpp
+++ b/llvm/lib/System/Mutex.cpp
@@ -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)
OpenPOWER on IntegriCloud