diff options
-rw-r--r-- | lld/ELF/GdbIndex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/GdbIndex.cpp b/lld/ELF/GdbIndex.cpp index 75359f22a4c..80ce4e26b20 100644 --- a/lld/ELF/GdbIndex.cpp +++ b/lld/ELF/GdbIndex.cpp @@ -165,7 +165,7 @@ template <class ELFT> std::vector<AddressEntry<ELFT>> GdbIndexBuilder<ELFT>::readAddressArea(size_t CurrentCU) { std::vector<AddressEntry<ELFT>> Ret; - for (const auto &CU : Dwarf->compile_units()) { + for (std::unique_ptr<DWARFCompileUnit> &CU : Dwarf->compile_units()) { DWARFAddressRangesVector Ranges; CU->collectAddressRanges(Ranges); |