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()) {
|
if (I == BinaryForPath.end()) {
|
||||||
Expected<OwningBinary<Binary>> BinOrErr = createBinary(Path);
|
Expected<OwningBinary<Binary>> BinOrErr = createBinary(Path);
|
||||||
if (!BinOrErr) {
|
if (!BinOrErr) {
|
||||||
OwningBinary<Binary> NullBinary;
|
BinaryForPath.insert(std::make_pair(Path, OwningBinary<Binary>()));
|
||||||
BinaryForPath.insert(std::make_pair(Path, std::move(NullBinary)));
|
|
||||||
return BinOrErr.takeError();
|
return BinOrErr.takeError();
|
||||||
}
|
}
|
||||||
Bin = BinOrErr->getBinary();
|
Bin = BinOrErr->getBinary();
|
||||||
|
|
Loading…
Reference in New Issue