mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
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
5d5b447dbe
commit
1005b89a03
@ -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…
x
Reference in New Issue
Block a user