From e9972a7113edb2bcc1e2b4b2204523c5500681ee Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Mon, 19 Dec 2022 17:14:55 +0300 Subject: [PATCH] [NFC][llvm-exegesis] Try to fix GCC7 build https://lab.llvm.org/staging/#/builders/235/builds/1090 --- llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp index 0478967..c0e4c61 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(Context.getLastError()); - return Benchmark; + return std::move(Benchmark); } Expected> -- 2.7.4