Skip to content

Commit df44ff1

Browse files
committed
[DWARF] Pass ReferenceToDIEOffsets elements by reference
llvm-svn: 358558
1 parent b9b35fd commit df44ff1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -638,9 +638,9 @@ unsigned DWARFVerifier::verifyDebugInfoReferences() {
638638
// getting the DIE by offset and emitting an error
639639
OS << "Verifying .debug_info references...\n";
640640
unsigned NumErrors = 0;
641-
for (auto Pair : ReferenceToDIEOffsets) {
642-
auto Die = DCtx.getDIEForOffset(Pair.first);
643-
if (Die)
641+
for (const std::pair<uint64_t, std::set<uint32_t>> &Pair :
642+
ReferenceToDIEOffsets) {
643+
if (DCtx.getDIEForOffset(Pair.first))
644644
continue;
645645
++NumErrors;
646646
error() << "invalid DIE reference " << format("0x%08" PRIx64, Pair.first)

0 commit comments

Comments
 (0)