From a3849490b18bda5c526b71752cda44497cd4ab7a 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. llvm-svn: 344496 --- llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp b/llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp index 9b577fd..feee61d 100644 --- a/llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp +++ b/llvm/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.7.4