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:
b4a2f05
)
silence warnings
author
Chris Lattner
<sabre@nondot.org>
Thu, 9 Nov 2006 05:18:12 +0000
(
05:18
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 9 Nov 2006 05:18:12 +0000
(
05:18
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31587
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 90b45028bc11e8b7f2eefdc3b95f9a843a4a357c..b2edd0af65b71e9a055a04bc1b1be94815f7e8c7 100644
(file)
--- a/
lib/Linker/LinkModules.cpp
+++ b/
lib/Linker/LinkModules.cpp
@@
-441,8
+441,8
@@
static bool LinkGlobals(Module *Dest, Module *Src,
SGV->hasExternalLinkage() || SGV->hasDLLImportLinkage() &&
"Global must either be external or have an initializer!");
- GlobalValue::LinkageTypes NewLinkage;
- bool LinkFromSrc;
+ GlobalValue::LinkageTypes NewLinkage
= GlobalValue::InternalLinkage
;
+ bool LinkFromSrc
= false
;
if (GetLinkageResult(DGV, SGV, NewLinkage, LinkFromSrc, Err))
return true;