[llvm-exegesis] Pacify bots - don't std::move() - prevents copy elision

llvm-svn: 358079
This commit is contained in:
Roman Lebedev 2019-04-10 12:47:47 +00:00
parent 8ab7414580
commit 1992e8f38e
1 changed files with 2 additions and 2 deletions

View File

@ -392,7 +392,7 @@ llvm::Error InstructionBenchmark::writeYaml(const LLVMState &State,
const llvm::StringRef Filename) {
if (Filename == "-") {
if (auto Err = writeYamlTo(State, llvm::outs()))
return std::move(Err);
return Err;
} else {
int ResultFD = 0;
if (auto E = llvm::errorCodeToError(
@ -402,7 +402,7 @@ llvm::Error InstructionBenchmark::writeYaml(const LLVMState &State,
}
llvm::raw_fd_ostream Ostr(ResultFD, true /*shouldClose*/);
if (auto Err = writeYamlTo(State, Ostr))
return std::move(Err);
return Err;
}
return llvm::Error::success();
}