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();