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/Bitcode | |
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/Bitcode')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index a2bb52c1e9..478103f982 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -2004,8 +2004,8 @@ error_code BitcodeReader::ParseModule(bool Resume) { return Error(InvalidTypeForValue); auto *NewGA = - new GlobalAlias(PTy->getElementType(), GetDecodedLinkage(Record[2]), - "", nullptr, TheModule, PTy->getAddressSpace()); + new GlobalAlias(PTy->getElementType(), PTy->getAddressSpace(), + GetDecodedLinkage(Record[2]), "", TheModule); // Old bitcode files didn't have visibility field. // Local linkage must have default visibility. if (Record.size() > 3 && !NewGA->hasLocalLinkage()) |