summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-10-08 15:13:30 +0000
committerDan Gohman <gohman@apple.com>2007-10-08 15:13:30 +0000
commit5e79a6108fa498f1c853ab14127fded2532ca7fa (patch)
tree1d7e1ce47a5dab7d7237873f33595a67d3a34bb6 /llvm/lib
parentfadf40a655bdd8ff275bd3ebd83b3597f9daaba2 (diff)
downloadbcm5719-llvm-5e79a6108fa498f1c853ab14127fded2532ca7fa.tar.gz
bcm5719-llvm-5e79a6108fa498f1c853ab14127fded2532ca7fa.zip
Use correct parentheses with the '&& "..."' idiom in an assert.
llvm-svn: 42750
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index 85caa20464c..0504580ddbb 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -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;
OpenPOWER on IntegriCloud