mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-01 08:12:12 +00:00
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
This commit is contained in:
parent
832cf6b796
commit
d1f8152166
@ -491,7 +491,7 @@ static void dumpSectionContrib(LinePrinter &P, const SectionContrib &SC,
|
||||
ArrayRef<std::string> SectionNames,
|
||||
uint32_t FieldWidth) {
|
||||
std::string NameInsert;
|
||||
if (SC.ISect > 0 && SC.ISect < SectionNames.size()) {
|
||||
if (SC.ISect > 0 && SC.ISect <= SectionNames.size()) {
|
||||
StringRef SectionName = SectionNames[SC.ISect - 1];
|
||||
NameInsert = formatv("[{0}]", SectionName).str();
|
||||
} else
|
||||
|
Loading…
x
Reference in New Issue
Block a user