[llvm] r342128 - Fix unused variable warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 13 03:54:23 PDT 2018
Author: rksimon
Date: Thu Sep 13 03:54:23 2018
New Revision: 342128
URL: http://llvm.org/viewvc/llvm-project?rev=342128&view=rev
Log:
Fix unused variable warning. NFCI.
Modified:
llvm/trunk/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp?rev=342128&r1=342127&r2=342128&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp Thu Sep 13 03:54:23 2018
@@ -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 <
More information about the llvm-commits
mailing list