[Lldb-commits] [lldb] r370612 - [lldb] Small optimization of FormatMap::Delete
Jan Kratochvil via lldb-commits
lldb-commits at lists.llvm.org
Sun Sep 1 08:08:33 PDT 2019
Author: jankratochvil
Date: Sun Sep 1 08:08:33 2019
New Revision: 370612
URL: http://llvm.org/viewvc/llvm-project?rev=370612&view=rev
Log:
[lldb] Small optimization of FormatMap::Delete
Modified:
lldb/trunk/include/lldb/DataFormatters/FormattersContainer.h
Modified: lldb/trunk/include/lldb/DataFormatters/FormattersContainer.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/DataFormatters/FormattersContainer.h?rev=370612&r1=370611&r2=370612&view=diff
==============================================================================
--- lldb/trunk/include/lldb/DataFormatters/FormattersContainer.h (original)
+++ lldb/trunk/include/lldb/DataFormatters/FormattersContainer.h Sun Sep 1 08:08:33 2019
@@ -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;
More information about the lldb-commits
mailing list