Fix linkage of mismatched weak globals. This unbreaks 300.twolf

llvm-svn: 18494
This commit is contained in:
Chris Lattner 2004-12-04 18:54:48 +00:00
parent 0711e7d1fd
commit 32d0c4ce02

View File

@ -531,6 +531,8 @@ static bool LinkGlobals(Module *Dest, Module *Src,
else
DGV->setConstant(true);
}
SGV->setLinkage(GlobalValue::ExternalLinkage);
SGV->setInitializer(0);
}
ValueMap.insert(std::make_pair(SGV,