[llvm] r310469 - Fix -Wpessimizing-move warning.
Haojian Wu via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 9 05:49:20 PDT 2017
Author: hokein
Date: Wed Aug 9 05:49:20 2017
New Revision: 310469
URL: http://llvm.org/viewvc/llvm-project?rev=310469&view=rev
Log:
Fix -Wpessimizing-move warning.
Modified:
llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
Modified: llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp?rev=310469&r1=310468&r2=310469&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Wed Aug 9 05:49:20 2017
@@ -2098,8 +2098,8 @@ bool X86AsmParser::HandleAVX512Operand(O
if (!getLexer().is(AsmToken::RCurly))
return Error(getLexer().getLoc(), "Expected } at this point");
Operands.push_back(X86Operand::CreateToken("{", StartLoc));
- Operands.push_back(std::move(X86Operand::CreateReg(RegNo, StartLoc,
- StartLoc)));
+ Operands.push_back(
+ X86Operand::CreateReg(RegNo, StartLoc, StartLoc));
Operands.push_back(X86Operand::CreateToken("}", consumeToken()));
} else
return Error(getLexer().getLoc(),
More information about the llvm-commits
mailing list