aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Lapshin <a.v.lapshin@mail.ru>2021-08-19 14:19:07 +0300
committerAlexey Lapshin <a.v.lapshin@mail.ru>2021-08-19 16:23:05 +0300
commitab9d506be36eb48f60d982ecbf8636f4b43a3399 (patch)
treec01d183cfd9a448af7e43e0725397c3d2036896c
parent2d60fdd7aad1ec61a6c8a07afc7f8c867255e69e (diff)
downloadllvm-ab9d506be36eb48f60d982ecbf8636f4b43a3399.zip
llvm-ab9d506be36eb48f60d982ecbf8636f4b43a3399.tar.gz
llvm-ab9d506be36eb48f60d982ecbf8636f4b43a3399.tar.bz2
[DWARF][Verifier][NFC] Use reference to DWARFAddressRangesVector to avoid copying.
Avoid copying while access to RangesOrError.get().
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
index c6e414a8..bbf5e69 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
@@ -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);