[Lldb-commits] [lldb] r129605 - /lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
Johnny Chen
johnny.chen at apple.com
Fri Apr 15 13:59:47 PDT 2011
Author: johnny
Date: Fri Apr 15 15:59:46 2011
New Revision: 129605
URL: http://llvm.org/viewvc/llvm-project?rev=129605&view=rev
Log:
Update both the src and dst pointers at the end of the loop.
Stephen Wilson is working on a better performing patch in the meantime.
Modified:
lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp?rev=129605&r1=129604&r2=129605&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp Fri Apr 15 15:59:46 2011
@@ -322,7 +322,7 @@
// Remove the merged ranges by shifting down all the keepers...
std::set<size_t> purged(indices.begin(), indices.end());
size_t new_size = m_aranges.size() - indices.size();
- for (size_t src = 0, dst = 0; dst < new_size; ++dst)
+ for (size_t src = 0, dst = 0; dst < new_size; ++src, ++dst)
{
while (purged.count(src) > 0)
++src;
More information about the lldb-commits
mailing list