llvm.org GIT mirror llvm / 5f32c01
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 Chris Lattner 12 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
963963 Section = SectionTable[Record[5]-1];
964964 }
965965 GlobalValue::VisibilityTypes Visibility = GlobalValue::DefaultVisibility;
966 if (Record.size() >= 6) Visibility = GetDecodedVisibility(Record[6]);
966 if (Record.size() > 6)
967 Visibility = GetDecodedVisibility(Record[6]);
967968 bool isThreadLocal = false;
968 if (Record.size() >= 7) isThreadLocal = Record[7];
969 if (Record.size() > 7)
970 isThreadLocal = Record[7];
969971
970972 GlobalVariable *NewGV =
971973 new GlobalVariable(Ty, isConstant, Linkage, 0, "", TheModule);