mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-20 19:25:05 +00:00
Be backward compatible
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48268 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
045497ae27
commit
91342d8873
@ -1075,6 +1075,7 @@ bool BitcodeReader::ParseModule(const std::string &ModuleID) {
|
||||
FunctionsWithBodies.push_back(Func);
|
||||
break;
|
||||
}
|
||||
// ALIAS: [alias type, aliasee val#, linkage]
|
||||
// ALIAS: [alias type, aliasee val#, linkage, visibility]
|
||||
case bitc::MODULE_CODE_ALIAS: {
|
||||
if (Record.size() < 3)
|
||||
@ -1085,7 +1086,9 @@ bool BitcodeReader::ParseModule(const std::string &ModuleID) {
|
||||
|
||||
GlobalAlias *NewGA = new GlobalAlias(Ty, GetDecodedLinkage(Record[2]),
|
||||
"", 0, TheModule);
|
||||
NewGA->setVisibility(GetDecodedVisibility(Record[3]));
|
||||
// Old bitcode files didn't have visibility field.
|
||||
if (Record.size() > 3)
|
||||
NewGA->setVisibility(GetDecodedVisibility(Record[3]));
|
||||
ValueList.push_back(NewGA);
|
||||
AliasInits.push_back(std::make_pair(NewGA, Record[1]));
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user