summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/LinkModules.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-05-07 22:54:15 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-05-07 22:54:15 +0000
commitfc2edad4ae6d4e69732b2d400e299d5598ba3e9d (patch)
tree45f5641a5613c6a15b77951bde29ece48b093fb1 /llvm/lib/Linker/LinkModules.cpp
parentac25fc6f2ee4463fff096ddacd98c474f148166f (diff)
downloadbcm5719-llvm-fc2edad4ae6d4e69732b2d400e299d5598ba3e9d.tar.gz
bcm5719-llvm-fc2edad4ae6d4e69732b2d400e299d5598ba3e9d.zip
Turn StripPointerCast() into a method
llvm-svn: 50836
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index ddc9081d654..57df01495b7 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -758,7 +758,8 @@ static bool LinkGlobalInits(Module *Dest, const Module *Src,
Constant *SInit =
cast<Constant>(RemapOperand(SGV->getInitializer(), ValueMap));
- GlobalVariable *DGV = cast<GlobalVariable>(StripPointerCasts(ValueMap[SGV]));
+ GlobalVariable *DGV =
+ cast<GlobalVariable>(ValueMap[SGV]->stripPointerCasts());
if (DGV->hasInitializer()) {
if (SGV->hasExternalLinkage()) {
if (DGV->getInitializer() != SInit)
OpenPOWER on IntegriCloud