mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-01 16:59:14 +00:00
llvm-pdbutil: Fix an off-by-one error.
Differential Revision: https://reviews.llvm.org/D45740 llvm-svn: 330222
This commit is contained in:
parent
60af27c1a3
commit
7358280f10
@ -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