[llvm-commits] [llvm] r42750 - /llvm/trunk/lib/Linker/LinkModules.cpp
Dan Gohman
djg at cray.com
Mon Oct 8 08:13:30 PDT 2007
Author: djg
Date: Mon Oct 8 10:13:30 2007
New Revision: 42750
URL: http://llvm.org/viewvc/llvm-project?rev=42750&view=rev
Log:
Use correct parentheses with the '&& "..."' idiom in an assert.
Modified:
llvm/trunk/lib/Linker/LinkModules.cpp
Modified: llvm/trunk/lib/Linker/LinkModules.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/LinkModules.cpp?rev=42750&r1=42749&r2=42750&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/LinkModules.cpp (original)
+++ llvm/trunk/lib/Linker/LinkModules.cpp Mon Oct 8 10:13:30 2007
@@ -469,8 +469,8 @@
if (DGV && DGV->hasInternalLinkage())
DGV = 0;
- assert(SGV->hasInitializer() || SGV->hasExternalWeakLinkage() ||
- SGV->hasExternalLinkage() || SGV->hasDLLImportLinkage() &&
+ assert((SGV->hasInitializer() || SGV->hasExternalWeakLinkage() ||
+ SGV->hasExternalLinkage() || SGV->hasDLLImportLinkage()) &&
"Global must either be external or have an initializer!");
GlobalValue::LinkageTypes NewLinkage = GlobalValue::InternalLinkage;
More information about the llvm-commits
mailing list