mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
Fix linkage of mismatched weak globals. This unbreaks 300.twolf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3149ba7a65
commit
c8ef1edc63
@ -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…
Reference in New Issue
Block a user