mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +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()) {
|
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…
x
Reference in New Issue
Block a user