forked from OSchip/llvm-project
[llvm-exegesis] Remove superfluous move.
/Users/buildslave/as-bldslv9_new/lld-x86_64-darwin13/llvm.src/tools/llvm-exegesis/lib/X86/Target.cpp:155:12: error: moving a local object in a return statement prevents copy elision [-Werror,-Wpessimizing-move] return std::move(Error); ^ /Users/buildslave/as-bldslv9_new/lld-x86_64-darwin13/llvm.src/tools/llvm-exegesis/lib/X86/Target.cpp:155:12: note: remove std::move call here return std::move(Error); ^~~~~~~~~~ ~ llvm-svn: 346333
This commit is contained in:
parent
a4d9e2293a
commit
5b0d783078
|
@ -152,7 +152,7 @@ static llvm::Error IsInvalidOpcode(const Instruction &Instr) {
|
|||
return llvm::make_error<BenchmarkFailure>(
|
||||
"unsupported opcode: Push/Pop/AdjCallStack");
|
||||
if (llvm::Error Error = isInvalidMemoryInstr(Instr))
|
||||
return std::move(Error);
|
||||
return Error;
|
||||
// We do not handle instructions with OPERAND_PCREL.
|
||||
for (const Operand &Op : Instr.Operands)
|
||||
if (Op.isExplicit() &&
|
||||
|
|
Loading…
Reference in New Issue