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:
parent
c5b5ebfade
commit
0830493d09
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user