Use correct parentheses with the '&& "..."' idiom in an assert.

llvm-svn: 42750
This commit is contained in:
Dan Gohman 2007-10-08 15:13:30 +00:00
parent fadf40a655
commit 5e79a6108f
1 changed files with 2 additions and 2 deletions

View File

@ -469,8 +469,8 @@ static bool LinkGlobals(Module *Dest, Module *Src,
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;