[lldb] Small optimization of FormatMap::Delete
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 1 Sep 2019 15:08:33 +0000 (15:08 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 1 Sep 2019 15:08:33 +0000 (15:08 +0000)
llvm-svn: 370612

lldb/include/lldb/DataFormatters/FormattersContainer.h

index 3dcae64..21f0b04 100644 (file)
@@ -89,7 +89,7 @@ public:
     MapIterator iter = m_map.find(name);
     if (iter == m_map.end())
       return false;
-    m_map.erase(name);
+    m_map.erase(iter);
     if (listener)
       listener->Changed();
     return true;