llvm.org GIT mirror llvm / bfc0aa3
[llvm-exegesis] Pacify bots - don't std::move() - prevents copy elision git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358079 91177308-0d34-0410-b5e6-96231b3b80d8 Roman Lebedev 1 year, 7 months ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
391391 const llvm::StringRef Filename) {
392392 if (Filename == "-") {
393393 if (auto Err = writeYamlTo(State, llvm::outs()))
394 return std::move(Err);
394 return Err;
395395 } else {
396396 int ResultFD = 0;
397397 if (auto E = llvm::errorCodeToError(
401401 }
402402 llvm::raw_fd_ostream Ostr(ResultFD, true /*shouldClose*/);
403403 if (auto Err = writeYamlTo(State, Ostr))
404 return std::move(Err);
404 return Err;
405405 }
406406 return llvm::Error::success();
407407 }