[lld] r296694 - Replace `auto` with its real type.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 1 14:24:26 PST 2017


Author: ruiu
Date: Wed Mar  1 16:24:25 2017
New Revision: 296694

URL: http://llvm.org/viewvc/llvm-project?rev=296694&view=rev
Log:
Replace `auto` with its real type.

Modified:
    lld/trunk/ELF/GdbIndex.cpp

Modified: lld/trunk/ELF/GdbIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/GdbIndex.cpp?rev=296694&r1=296693&r2=296694&view=diff
==============================================================================
--- lld/trunk/ELF/GdbIndex.cpp (original)
+++ lld/trunk/ELF/GdbIndex.cpp Wed Mar  1 16:24:25 2017
@@ -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);
 




More information about the llvm-commits mailing list