mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-23 12:11:58 +00:00
Use correct parentheses with the '&& "..."' idiom in an assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42750 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
417e11b9bf
commit
c318329a10
@ -469,8 +469,8 @@ static bool LinkGlobals(Module *Dest, Module *Src,
|
|||||||
if (DGV && DGV->hasInternalLinkage())
|
if (DGV && DGV->hasInternalLinkage())
|
||||||
DGV = 0;
|
DGV = 0;
|
||||||
|
|
||||||
assert(SGV->hasInitializer() || SGV->hasExternalWeakLinkage() ||
|
assert((SGV->hasInitializer() || SGV->hasExternalWeakLinkage() ||
|
||||||
SGV->hasExternalLinkage() || SGV->hasDLLImportLinkage() &&
|
SGV->hasExternalLinkage() || SGV->hasDLLImportLinkage()) &&
|
||||||
"Global must either be external or have an initializer!");
|
"Global must either be external or have an initializer!");
|
||||||
|
|
||||||
GlobalValue::LinkageTypes NewLinkage = GlobalValue::InternalLinkage;
|
GlobalValue::LinkageTypes NewLinkage = GlobalValue::InternalLinkage;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user