[llvm-commits] CVS: llvm/lib/System/Mutex.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 27 17:42:50 PDT 2006



Changes in directory llvm/lib/System:

Mutex.cpp updated: 1.8 -> 1.9
---
Log message:

simplify AnalysisGroup registration, eliminating one typeid call.


---
Diffs of the changes:  (+1 -1)

 Mutex.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/System/Mutex.cpp
diff -u llvm/lib/System/Mutex.cpp:1.8 llvm/lib/System/Mutex.cpp:1.9
--- llvm/lib/System/Mutex.cpp:1.8	Wed Jul 26 11:18:00 2006
+++ llvm/lib/System/Mutex.cpp	Sun Aug 27 19:42:29 2006
@@ -53,7 +53,7 @@
 //       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)






More information about the llvm-commits mailing list