summaryrefslogtreecommitdiff
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
commitc318329a1098a19137398af4d880f4d8cdd9cd8d (patch)
treefc3fb323b4a8995e996e0bf8001cc67d104102eb
parent417e11b9bf625b3626f8765d44248927fb200906 (diff)
downloadllvm-c318329a1098a19137398af4d880f4d8cdd9cd8d.tar.gz
llvm-c318329a1098a19137398af4d880f4d8cdd9cd8d.tar.bz2
llvm-c318329a1098a19137398af4d880f4d8cdd9cd8d.tar.xz
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
-rw-r--r--lib/Linker/LinkModules.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp
index 85caa20464..0504580ddb 100644
--- a/lib/Linker/LinkModules.cpp
+++ b/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;