aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2019-04-10 12:47:47 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2019-04-10 12:47:47 +0000
commit1992e8f38edd4cd4abb1478a9970c3c1b4fbf2a0 (patch)
tree5b406ab07ab46207a752d066a0af96005351e0c6 /llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
parent8ab74145808b391433c8dadf937313686b5cb86c (diff)
downloadllvm-1992e8f38edd4cd4abb1478a9970c3c1b4fbf2a0.zip
llvm-1992e8f38edd4cd4abb1478a9970c3c1b4fbf2a0.tar.gz
llvm-1992e8f38edd4cd4abb1478a9970c3c1b4fbf2a0.tar.bz2
[llvm-exegesis] Pacify bots - don't std::move() - prevents copy elision
llvm-svn: 358079
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
index 976ea87..4a696e2 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
@@ -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();
}