From 5b65e41a8f022cecd7d98b24c34b1246db7bc4a6 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 13 Sep 2018 10:54:23 +0000 Subject: [PATCH] Fix unused variable warning. NFCI. llvm-svn: 342128 --- llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp b/llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp index 3b39bf5..84b6c4b 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp @@ -166,7 +166,7 @@ const DWARFUnitIndex::Entry * DWARFUnitIndex::getFromOffset(uint32_t Offset) const { if (OffsetLookup.empty()) { for (uint32_t i = 0; i != Header.NumBuckets; ++i) - if (const auto &Contribs = Rows[i].Contributions) + if (Rows[i].Contributions) OffsetLookup.push_back(&Rows[i]); llvm::sort(OffsetLookup, [&](Entry *E1, Entry *E2) { return E1->Contributions[InfoColumn].Offset < -- 2.7.4