[llvm] r344496 - [llvm-exegesis] Fix missing std::move.
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 15 02:21:22 PDT 2018
Author: gchatelet
Date: Mon Oct 15 02:21:21 2018
New Revision: 344496
URL: http://llvm.org/viewvc/llvm-project?rev=344496&view=rev
Log:
[llvm-exegesis] Fix missing std::move.
Modified:
llvm/trunk/tools/llvm-exegesis/lib/SnippetGenerator.cpp
Modified: llvm/trunk/tools/llvm-exegesis/lib/SnippetGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/SnippetGenerator.cpp?rev=344496&r1=344495&r2=344496&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/SnippetGenerator.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/SnippetGenerator.cpp Mon Oct 15 02:21:21 2018
@@ -125,7 +125,7 @@ generateSelfAliasingCodeTemplates(const
setRandomAliasing(SelfAliasing, IT, IT);
}
CT.Instructions.push_back(std::move(IT));
- return Result;
+ return std::move(Result);
}
llvm::Expected<std::vector<CodeTemplate>>
@@ -136,7 +136,7 @@ generateUnconstrainedCodeTemplates(const
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() {
More information about the llvm-commits
mailing list