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 | 0b12ecf6ff6b5d3a144178257b6206f0c4788792 (patch) | |
tree | 5c4aa1539ace252ca8f271594cf67c82ceff4dac /lib/Linker | |
parent | 4561ab5d8199cbfe21288d06b89d8268b48e4be2 (diff) | |
download | external_llvm-0b12ecf6ff6b5d3a144178257b6206f0c4788792.zip external_llvm-0b12ecf6ff6b5d3a144178257b6206f0c4788792.tar.gz external_llvm-0b12ecf6ff6b5d3a144178257b6206f0c4788792.tar.bz2 |
Turn StripPointerCast() into a method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker')
-rw-r--r-- | lib/Linker/LinkModules.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index ddc9081..57df014 100644 --- a/lib/Linker/LinkModules.cpp +++ b/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) |