From 236d68ce0f57523aad3d5a7ca1fa4509574b5dde Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Mon, 6 Jun 2016 23:28:03 +0000 Subject: [PATCH] Attempt to work around lack of std::map::emplace in libstdc++4.7 llvm-svn: 271958 --- lib/DebugInfo/Symbolize/Symbolize.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/DebugInfo/Symbolize/Symbolize.cpp b/lib/DebugInfo/Symbolize/Symbolize.cpp index e91e43e4af5..f306cc0387a 100644 --- a/lib/DebugInfo/Symbolize/Symbolize.cpp +++ b/lib/DebugInfo/Symbolize/Symbolize.cpp @@ -325,7 +325,8 @@ LLVMSymbolizer::getOrCreateObject(const std::string &Path, if (I == BinaryForPath.end()) { Expected> BinOrErr = createBinary(Path); if (!BinOrErr) { - BinaryForPath.emplace(Path, OwningBinary()); + OwningBinary NullBinary; + BinaryForPath.insert(std::make_pair(Path, std::move(NullBinary))); return BinOrErr.takeError(); } Bin = BinOrErr->getBinary();