[llvm] r312809 - [x86] Fix GCC pedantic warnings about default arguments for lambdas.
Chandler Carruth via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 8 11:23:43 PDT 2017
Author: chandlerc
Date: Fri Sep 8 11:23:42 2017
New Revision: 312809
URL: http://llvm.org/viewvc/llvm-project?rev=312809&view=rev
Log:
[x86] Fix GCC pedantic warnings about default arguments for lambdas.
Modified:
llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp?rev=312809&r1=312808&r2=312809&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp Fri Sep 8 11:23:42 2017
@@ -2135,7 +2135,7 @@ bool X86DAGToDAGISel::foldLoadStoreIntoM
return false;
auto SelectOpcode = [&](unsigned Opc64, unsigned Opc32, unsigned Opc16,
- unsigned Opc8 = 0) {
+ unsigned Opc8) {
switch (MemVT.getSimpleVT().SimpleTy) {
case MVT::i64:
return Opc64;
@@ -2191,15 +2191,15 @@ bool X86DAGToDAGISel::foldLoadStoreIntoM
auto SelectImm8Opcode = [SelectOpcode](unsigned Opc) {
switch (Opc) {
case X86ISD::ADD:
- return SelectOpcode(X86::ADD64mi8, X86::ADD32mi8, X86::ADD16mi8);
+ return SelectOpcode(X86::ADD64mi8, X86::ADD32mi8, X86::ADD16mi8, 0);
case X86ISD::SUB:
- return SelectOpcode(X86::SUB64mi8, X86::SUB32mi8, X86::SUB16mi8);
+ return SelectOpcode(X86::SUB64mi8, X86::SUB32mi8, X86::SUB16mi8, 0);
case X86ISD::AND:
- return SelectOpcode(X86::AND64mi8, X86::AND32mi8, X86::AND16mi8);
+ return SelectOpcode(X86::AND64mi8, X86::AND32mi8, X86::AND16mi8, 0);
case X86ISD::OR:
- return SelectOpcode(X86::OR64mi8, X86::OR32mi8, X86::OR16mi8);
+ return SelectOpcode(X86::OR64mi8, X86::OR32mi8, X86::OR16mi8, 0);
case X86ISD::XOR:
- return SelectOpcode(X86::XOR64mi8, X86::XOR32mi8, X86::XOR16mi8);
+ return SelectOpcode(X86::XOR64mi8, X86::XOR32mi8, X86::XOR16mi8, 0);
default:
llvm_unreachable("Invalid opcode!");
}
More information about the llvm-commits
mailing list