Skip to content

Commit 72c97cc

Browse files
committed
[rust] Fix compile error on GCC 5.4
1 parent 5f074ec commit 72c97cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -413,12 +413,12 @@ unsigned DWARFVerifier::verifyIndex(StringRef Name,
413413
uint64_t Sig = E.getSignature();
414414
if (!E.getContributions())
415415
continue;
416-
for (auto E : enumerate(InfoColumnKind == DW_SECT_INFO
416+
for (auto P : enumerate(InfoColumnKind == DW_SECT_INFO
417417
? makeArrayRef(E.getContributions(),
418418
Index.getColumnKinds().size())
419419
: makeArrayRef(E.getContribution(), 1))) {
420-
const DWARFUnitIndex::Entry::SectionContribution &SC = E.value();
421-
int Col = E.index();
420+
const DWARFUnitIndex::Entry::SectionContribution &SC = P.value();
421+
int Col = P.index();
422422
if (SC.Length == 0)
423423
continue;
424424
if (!Sections[Col])

0 commit comments

Comments
 (0)