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:
Reid Kleckner 2016-06-06 23:46:14 +00:00
parent 8d0e861e9b
commit 4ece163c92
1 changed files with 1 additions and 2 deletions

View File

@ -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();