forked from OSchip/llvm-project
[DWARF][Verifier][NFC] Use reference to DWARFAddressRangesVector to avoid copying.
Avoid copying while access to RangesOrError.get().
This commit is contained in:
parent
2d60fdd7aa
commit
ab9d506be3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue