forked from OSchip/llvm-project
Try one more time to pacify -Wpessimizing-move, MSVC, libstdc++4.7, and the world without a named variable
llvm-svn: 271964
This commit is contained in:
parent
8d0e861e9b
commit
4ece163c92
|
@ -325,8 +325,7 @@ LLVMSymbolizer::getOrCreateObject(const std::string &Path,
|
|||
if (I == BinaryForPath.end()) {
|
||||
Expected<OwningBinary<Binary>> BinOrErr = createBinary(Path);
|
||||
if (!BinOrErr) {
|
||||
OwningBinary<Binary> NullBinary;
|
||||
BinaryForPath.insert(std::make_pair(Path, std::move(NullBinary)));
|
||||
BinaryForPath.insert(std::make_pair(Path, OwningBinary<Binary>()));
|
||||
return BinOrErr.takeError();
|
||||
}
|
||||
Bin = BinOrErr->getBinary();
|
||||
|
|
Loading…
Reference in New Issue