mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-27 23:13:27 +00:00
Fix linkage of mismatched weak globals. This unbreaks 300.twolf
llvm-svn: 18494
This commit is contained in:
parent
0711e7d1fd
commit
32d0c4ce02
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user