[DWARF][Verifier][NFC] Use reference to DWARFAddressRangesVector to avoid copying.

Avoid copying while access to RangesOrError.get().
This commit is contained in:
Alexey Lapshin 2021-08-19 14:19:07 +03:00
parent 2d60fdd7aa
commit ab9d506be3
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ unsigned DWARFVerifier::verifyDieRanges(const DWARFDie &Die,
return NumErrors;
}
DWARFAddressRangesVector Ranges = RangesOrError.get();
const DWARFAddressRangesVector &Ranges = RangesOrError.get();
// Build RI for this DIE and check that ranges within this DIE do not
// overlap.
DieRangeInfo RI(Die);