diff options
author | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-06-28 20:06:38 +0000 |
---|---|---|
committer | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-06-28 20:06:38 +0000 |
commit | 00d8a84b4432bedc3050f012454cbf6ef1b05461 (patch) | |
tree | d3f8235cd6fc2bb4cb05138790f62dc684b79fc2 /lib/Linker/LinkModules.cpp | |
parent | a696d24ad275608540aba1e5c668bbd52e04317e (diff) |
Fix a bug in my previous patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker/LinkModules.cpp')
-rw-r--r-- | lib/Linker/LinkModules.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index c69010a819..462a4b7c66 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -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; |