summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/LinkModules.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-09 05:18:12 +0000
committerChris Lattner <sabre@nondot.org>2006-11-09 05:18:12 +0000
commit1b9633d7f00c6af08284a6e8072418718d6d65a6 (patch)
tree6d565c6bb24b469486d7cd613cef3274125324c6 /llvm/lib/Linker/LinkModules.cpp
parent6e2c15c1585b9e3484271b55ca58c77472dee360 (diff)
downloadbcm5719-llvm-1b9633d7f00c6af08284a6e8072418718d6d65a6.tar.gz
bcm5719-llvm-1b9633d7f00c6af08284a6e8072418718d6d65a6.zip
silence warnings
llvm-svn: 31587
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-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 90b45028bc1..b2edd0af65b 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud