mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Fix a bug in my previous patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37778 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a696d24ad2
commit
00d8a84b44
@ -578,9 +578,8 @@ static bool LinkAlias(Module *Dest, const Module *Src, std::string *Err) {
|
||||
// FIXME: we should handle the bitcast alias.
|
||||
assert(NewAliased && "Can't find the aliased GV.");
|
||||
|
||||
GlobalAlias *NewGA = new GlobalAlias(GA->getType()->getElementType(),
|
||||
GA->getLinkage(), GA->getName(),
|
||||
NewAliased, Dest);
|
||||
GlobalAlias *NewGA = new GlobalAlias(GA->getType(), GA->getLinkage(),
|
||||
GA->getName(), NewAliased, Dest);
|
||||
CopyGVAttributes(NewGA, GA);
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user