diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-09-14 20:29:26 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-09-14 20:29:26 +0000 |
commit | 6614d8d2308f2571a79592cdd4b4611a1e072898 (patch) | |
tree | 12bc2f2be4b939fca06d489111ec5e8aa563b464 /llvm/lib/Linker/LinkModules.cpp | |
parent | 601771ebc089d92cbdc674d1856f44ce325c82d5 (diff) | |
download | bcm5719-llvm-6614d8d2308f2571a79592cdd4b4611a1e072898.tar.gz bcm5719-llvm-6614d8d2308f2571a79592cdd4b4611a1e072898.zip |
[opaque pointer types] Switch a few cases of getElementType over, since I had them lying around anyway
llvm-svn: 247610
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index 4b676cdf9dc..4d939a62f4b 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/lib/Linker/LinkModules.cpp @@ -585,8 +585,8 @@ static GlobalAlias *copyGlobalAliasProto(TypeMapTy &TypeMap, Module &DstM, const GlobalAlias *SGA) { // If there is no linkage to be performed or we're linking from the source, // bring over SGA. - auto *PTy = cast<PointerType>(TypeMap.get(SGA->getType())); - return GlobalAlias::create(PTy->getElementType(), PTy->getAddressSpace(), + auto *Ty = TypeMap.get(SGA->getValueType()); + return GlobalAlias::create(Ty, SGA->getType()->getPointerAddressSpace(), SGA->getLinkage(), SGA->getName(), &DstM); } |