[llvm] r339767 - Remove lambda default argument to fix gcc pedantic warning.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 15 05:32:09 PDT 2018
Author: rksimon
Date: Wed Aug 15 05:32:09 2018
New Revision: 339767
URL: http://llvm.org/viewvc/llvm-project?rev=339767&view=rev
Log:
Remove lambda default argument to fix gcc pedantic warning.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=339767&r1=339766&r2=339767&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Aug 15 05:32:09 2018
@@ -30283,7 +30283,7 @@ static SDValue combineX86ShufflesRecursi
// Add the inputs to the Ops list, avoiding duplicates.
SmallVector<SDValue, 16> Ops(SrcOps.begin(), SrcOps.end());
- auto AddOp = [&Ops](SDValue Input, int InsertionPoint = -1) -> int {
+ auto AddOp = [&Ops](SDValue Input, int InsertionPoint) -> int {
if (!Input)
return -1;
// Attempt to find an existing match.
@@ -30302,7 +30302,7 @@ static SDValue combineX86ShufflesRecursi
};
int InputIdx0 = AddOp(Input0, SrcOpIndex);
- int InputIdx1 = AddOp(Input1);
+ int InputIdx1 = AddOp(Input1, -1);
assert(((RootMask.size() > OpMask.size() &&
RootMask.size() % OpMask.size() == 0) ||
More information about the llvm-commits
mailing list