[llvm-commits] [llvm] r73673 - /llvm/trunk/lib/VMCore/Pass.cpp
Nick Lewycky
nicholas at mxc.ca
Wed Jun 17 20:01:44 PDT 2009
Author: nicholas
Date: Wed Jun 17 22:01:42 2009
New Revision: 73673
URL: http://llvm.org/viewvc/llvm-project?rev=73673&view=rev
Log:
Add braces to clarify if/else structure and remove warning.
Modified:
llvm/trunk/lib/VMCore/Pass.cpp
Modified: llvm/trunk/lib/VMCore/Pass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Pass.cpp?rev=73673&r1=73672&r2=73673&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Pass.cpp (original)
+++ llvm/trunk/lib/VMCore/Pass.cpp Wed Jun 17 22:01:42 2009
@@ -197,7 +197,7 @@
// Use double-checked locking to safely initialize the registrar when
// we're running in multithreaded mode.
- if (!PassRegistrarObj)
+ if (!PassRegistrarObj) {
if (llvm_is_multithreaded()) {
llvm_acquire_global_lock();
if (!PassRegistrarObj) {
@@ -208,6 +208,7 @@
llvm_release_global_lock();
} else
PassRegistrarObj = new PassRegistrar();
+ }
return PassRegistrarObj;
}
More information about the llvm-commits
mailing list