summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-04-15 20:59:46 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-04-15 20:59:46 +0000
commitfec280e750d1251af2f975173e2e4af05b0f46da (patch)
tree88bb2faf9fd4951775849f49b8a351caa75302f8
parent5d3d3fa33d44a2964b746cc0b8c286a5438ce6c8 (diff)
downloadbcm5719-llvm-fec280e750d1251af2f975173e2e4af05b0f46da.tar.gz
bcm5719-llvm-fec280e750d1251af2f975173e2e4af05b0f46da.zip
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. llvm-svn: 129605
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
index 2c7946059e2..8f8179f5aab 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
@@ -322,7 +322,7 @@ DWARFDebugAranges::Sort()
// 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;
OpenPOWER on IntegriCloud