diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-05-07 22:54:15 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-05-07 22:54:15 +0000 |
commit | fc2edad4ae6d4e69732b2d400e299d5598ba3e9d (patch) | |
tree | 45f5641a5613c6a15b77951bde29ece48b093fb1 /llvm/lib/Linker/LinkModules.cpp | |
parent | ac25fc6f2ee4463fff096ddacd98c474f148166f (diff) | |
download | bcm5719-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.cpp | 3 |
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) |