summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/LinkModules.cpp
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2007-06-28 20:06:38 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2007-06-28 20:06:38 +0000
commitb2c3a67015d6633631c124c910231aeba3fca89d (patch)
tree08c27f9e613eef5644d8bc63004dc1adc0d6a89e /llvm/lib/Linker/LinkModules.cpp
parentcbc8ddf81a42dad1488d4b673149f475dac1748c (diff)
downloadbcm5719-llvm-b2c3a67015d6633631c124c910231aeba3fca89d.tar.gz
bcm5719-llvm-b2c3a67015d6633631c124c910231aeba3fca89d.zip
Fix a bug in my previous patch.
llvm-svn: 37778
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index c69010a8196..462a4b7c662 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud