projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
417e11b
)
Use correct parentheses with the '&& "..."' idiom in an assert.
author
Dan Gohman
<gohman@apple.com>
Mon, 8 Oct 2007 15:13:30 +0000
(15:13 +0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 8 Oct 2007 15:13:30 +0000
(15:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42750
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Linker/LinkModules.cpp
patch
|
blob
|
history
diff --git
a/lib/Linker/LinkModules.cpp
b/lib/Linker/LinkModules.cpp
index 85caa20464c7cf800b440fd3ce87b61007220868..0504580ddbbfd8e59ba83c459449422792dfd75a 100644
(file)
--- 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;