diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-17 19:57:46 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-17 19:57:46 +0000 |
commit | fbd8cc09269d6c7c5ca615a4757e41899a18283f (patch) | |
tree | 62261699c646bafd5ce35168f471b5e4f1f91b2f /lib/Linker | |
parent | a2f821964637856c4fea48f3f44a863ebbf181b7 (diff) | |
download | llvm-fbd8cc09269d6c7c5ca615a4757e41899a18283f.tar.gz llvm-fbd8cc09269d6c7c5ca615a4757e41899a18283f.tar.bz2 llvm-fbd8cc09269d6c7c5ca615a4757e41899a18283f.tar.xz |
Reduce abuse of default values in the GlobalAlias constructor.
This is in preparation for adding an optional offset.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209073 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker')
-rw-r--r-- | lib/Linker/LinkModules.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index cf49d3fd55..518b681046 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -922,9 +922,8 @@ bool ModuleLinker::linkAliasProto(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())); - auto *NewDA = - new GlobalAlias(PTy->getElementType(), SGA->getLinkage(), SGA->getName(), - /*aliasee*/ nullptr, DstM, PTy->getAddressSpace()); + auto *NewDA = new GlobalAlias(PTy->getElementType(), PTy->getAddressSpace(), + SGA->getLinkage(), SGA->getName(), DstM); copyGVAttributes(NewDA, SGA); if (NewVisibility) NewDA->setVisibility(*NewVisibility); |