From 247a7c11f74cbc4eff1a1a34bfdee35ccdd2cb00 Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Mon, 15 Oct 2018 09:21:21 +0000 Subject: [PATCH] [llvm-exegesis] Fix missing std::move. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344496 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-exegesis/lib/SnippetGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/llvm-exegesis/lib/SnippetGenerator.cpp b/tools/llvm-exegesis/lib/SnippetGenerator.cpp index 9b577fd65a9..feee61d113c 100644 --- a/tools/llvm-exegesis/lib/SnippetGenerator.cpp +++ b/tools/llvm-exegesis/lib/SnippetGenerator.cpp @@ -125,7 +125,7 @@ generateSelfAliasingCodeTemplates(const Instruction &Instr) { setRandomAliasing(SelfAliasing, IT, IT); } CT.Instructions.push_back(std::move(IT)); - return Result; + return std::move(Result); } llvm::Expected> @@ -136,7 +136,7 @@ generateUnconstrainedCodeTemplates(const Instruction &Instr, CodeTemplate &CT = Result.back(); CT.Info = llvm::formatv("{0}, repeating an unconstrained assignment", Msg); CT.Instructions.emplace_back(Instr); - return Result; + return std::move(Result); } std::mt19937 &randomGenerator() { -- 2.11.4.GIT