summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-03-01 22:24:25 +0000
committerRui Ueyama <ruiu@google.com>2017-03-01 22:24:25 +0000
commit97d7a74b350c41623dd84812363a9803b6418aa1 (patch)
tree027e668e15da33371a6918daa8bf3af1ce8313df
parentf6a4079cf80038eab815b73d2d46b0328e085358 (diff)
downloadbcm5719-llvm-97d7a74b350c41623dd84812363a9803b6418aa1.tar.gz
bcm5719-llvm-97d7a74b350c41623dd84812363a9803b6418aa1.zip
Replace `auto` with its real type.
llvm-svn: 296694
-rw-r--r--lld/ELF/GdbIndex.cpp2
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);
OpenPOWER on IntegriCloud