[Lldb-commits] [lldb] r350244 - Use map::insert instead of try_emplace.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 2 10:53:11 PST 2019
Author: zturner
Date: Wed Jan 2 10:53:11 2019
New Revision: 350244
URL: http://llvm.org/viewvc/llvm-project?rev=350244&view=rev
Log:
Use map::insert instead of try_emplace.
try_emplace is C++17.
Modified:
lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbIndex.cpp
Modified: lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbIndex.cpp?rev=350244&r1=350243&r2=350244&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbIndex.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbIndex.cpp Wed Jan 2 10:53:11 2019
@@ -136,7 +136,7 @@ void PdbIndex::BuildAddrToSymbolMap(Comp
// If the debug info is incorrect, we could have multiple symbols with the
// same address. So use try_emplace instead of insert, and the first one
// will win.
- cci.m_symbols_by_va.try_emplace(va, PdbSymUid(cu_sym_id));
+ cci.m_symbols_by_va.insert(std::make_pair(va, PdbSymUid(cu_sym_id)));
}
}
More information about the lldb-commits
mailing list