mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-08 05:16:53 +00:00
Fix a bug in my previous patch.
llvm-svn: 37778
This commit is contained in:
parent
370ff247c8
commit
04172124dd
@ -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…
x
Reference in New Issue
Block a user