Use map::insert instead of try_emplace.

try_emplace is C++17.

llvm-svn: 350244
This commit is contained in:
Zachary Turner 2019-01-02 18:53:11 +00:00
parent 225663308d
commit 10ac299a9d
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ void PdbIndex::BuildAddrToSymbolMap(CompilandIndexItem &cci) {
// 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)));
}
}