forked from OSchip/llvm-project
Use correct parentheses with the '&& "..."' idiom in an assert.
llvm-svn: 42750
This commit is contained in:
parent
fadf40a655
commit
5e79a6108f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue