From: Roman Lebedev Date: Mon, 19 Dec 2022 14:14:55 +0000 (+0300) Subject: [NFC][llvm-exegesis] Try to fix GCC7 build X-Git-Tag: upstream/17.0.6~23248 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9972a7113edb2bcc1e2b4b2204523c5500681ee;p=platform%2Fupstream%2Fllvm.git [NFC][llvm-exegesis] Try to fix GCC7 build https://lab.llvm.org/staging/#/builders/235/builds/1090 --- 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>