diff --git a/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp b/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp index f306cc0387aa..1ddef5d3fcfc 100644 --- a/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp +++ b/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp @@ -325,8 +325,7 @@ LLVMSymbolizer::getOrCreateObject(const std::string &Path, if (I == BinaryForPath.end()) { Expected> BinOrErr = createBinary(Path); if (!BinOrErr) { - OwningBinary NullBinary; - BinaryForPath.insert(std::make_pair(Path, std::move(NullBinary))); + BinaryForPath.insert(std::make_pair(Path, OwningBinary())); return BinOrErr.takeError(); } Bin = BinOrErr->getBinary();