mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 07:29:55 +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())
|
||||
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
Block a user