silence warnings
authorChris Lattner <sabre@nondot.org>
Thu, 9 Nov 2006 05:18:12 +0000 (05:18 +0000)
committerChris 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

index 90b45028bc11e8b7f2eefdc3b95f9a843a4a357c..b2edd0af65b71e9a055a04bc1b1be94815f7e8c7 100644 (file)
@@ -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;