mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
fix off-by-one that caused the llvm2cpp test to fail
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36880 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
51eeb6e536
commit
5f32c01dea
@ -964,9 +964,11 @@ bool BitcodeReader::ParseModule(const std::string &ModuleID) {
|
|||||||
Section = SectionTable[Record[5]-1];
|
Section = SectionTable[Record[5]-1];
|
||||||
}
|
}
|
||||||
GlobalValue::VisibilityTypes Visibility = GlobalValue::DefaultVisibility;
|
GlobalValue::VisibilityTypes Visibility = GlobalValue::DefaultVisibility;
|
||||||
if (Record.size() >= 6) Visibility = GetDecodedVisibility(Record[6]);
|
if (Record.size() > 6)
|
||||||
|
Visibility = GetDecodedVisibility(Record[6]);
|
||||||
bool isThreadLocal = false;
|
bool isThreadLocal = false;
|
||||||
if (Record.size() >= 7) isThreadLocal = Record[7];
|
if (Record.size() > 7)
|
||||||
|
isThreadLocal = Record[7];
|
||||||
|
|
||||||
GlobalVariable *NewGV =
|
GlobalVariable *NewGV =
|
||||||
new GlobalVariable(Ty, isConstant, Linkage, 0, "", TheModule);
|
new GlobalVariable(Ty, isConstant, Linkage, 0, "", TheModule);
|
||||||
|
Loading…
Reference in New Issue
Block a user