1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[llvm-exegesis] Fix missing std::move.

llvm-svn: 344496
This commit is contained in:
Guillaume Chatelet 2018-10-15 09:21:21 +00:00
parent c5b5ebfade
commit 0830493d09

View File

@ -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<std::vector<CodeTemplate>>
@ -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() {