From 8ae415fb86e374a3f6a4ac618d9fae13e0f18e25 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 15 Aug 2018 12:32:09 +0000 Subject: [PATCH] Remove lambda default argument to fix gcc pedantic warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339767 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86ISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 8a4b0ffe177..65954f5bfc2 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -30283,7 +30283,7 @@ static SDValue combineX86ShufflesRecursively( // Add the inputs to the Ops list, avoiding duplicates. SmallVector 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 combineX86ShufflesRecursively( }; int InputIdx0 = AddOp(Input0, SrcOpIndex); - int InputIdx1 = AddOp(Input1); + int InputIdx1 = AddOp(Input1, -1); assert(((RootMask.size() > OpMask.size() && RootMask.size() % OpMask.size() == 0) || -- 2.11.0