Skip to content

Commit

Permalink
[rust] Fix compile error on GCC 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Aug 9, 2022
1 parent 5f074ec commit 72c97cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,12 +413,12 @@ unsigned DWARFVerifier::verifyIndex(StringRef Name,
uint64_t Sig = E.getSignature();
if (!E.getContributions())
continue;
for (auto E : enumerate(InfoColumnKind == DW_SECT_INFO
for (auto P : enumerate(InfoColumnKind == DW_SECT_INFO
? makeArrayRef(E.getContributions(),
Index.getColumnKinds().size())
: makeArrayRef(E.getContribution(), 1))) {
const DWARFUnitIndex::Entry::SectionContribution &SC = E.value();
int Col = E.index();
const DWARFUnitIndex::Entry::SectionContribution &SC = P.value();
int Col = P.index();
if (SC.Length == 0)
continue;
if (!Sections[Col])
Expand Down

0 comments on commit 72c97cc

Please sign in to comment.