llvm.org GIT mirror llvm / d1f8152
llvm-pdbutil: Fix an off-by-one error. Differential Revision: https://reviews.llvm.org/D45740 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330222 91177308-0d34-0410-b5e6-96231b3b80d8 Peter Collingbourne 1 year, 5 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
490490 ArrayRef SectionNames,
491491 uint32_t FieldWidth) {
492492 std::string NameInsert;
493 if (SC.ISect > 0 && SC.ISect < SectionNames.size()) {
493 if (SC.ISect > 0 && SC.ISect <= SectionNames.size()) {
494494 StringRef SectionName = SectionNames[SC.ISect - 1];
495495 NameInsert = formatv("[{0}]", SectionName).str();
496496 } else