[NFC][llvm-exegesis] Try to fix GCC7 build
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 19 Dec 2022 14:14:55 +0000 (17:14 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 19 Dec 2022 14:15:27 +0000 (17:15 +0300)
https://lab.llvm.org/staging/#/builders/235/builds/1090

llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp

index 0478967..c0e4c61 100644 (file)
@@ -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>>