[llvm] e9972a7 - [NFC][llvm-exegesis] Try to fix GCC7 build
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 19 06:15:41 PST 2022
Author: Roman Lebedev
Date: 2022-12-19T17:15:27+03:00
New Revision: e9972a7113edb2bcc1e2b4b2204523c5500681ee
URL: https://github.com/llvm/llvm-project/commit/e9972a7113edb2bcc1e2b4b2204523c5500681ee
DIFF: https://github.com/llvm/llvm-project/commit/e9972a7113edb2bcc1e2b4b2204523c5500681ee.diff
LOG: [NFC][llvm-exegesis] Try to fix GCC7 build
https://lab.llvm.org/staging/#/builders/235/builds/1090
Added:
Modified:
llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
index 0478967ace64b..c0e4c61c98407 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
@@ -349,7 +349,7 @@ InstructionBenchmark::readYaml(const LLVMState &State, MemoryBufferRef Buffer) {
yaml::yamlize(Yin, Benchmark, /*unused*/ true, Context);
if (!Context.getLastError().empty())
return make_error<Failure>(Context.getLastError());
- return Benchmark;
+ return std::move(Benchmark);
}
Expected<std::vector<InstructionBenchmark>>
More information about the llvm-commits
mailing list