diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-08-15 12:32:09 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-08-15 12:32:09 +0000 |
commit | f3b5943ffca79a3c8ef5c7734e6c7df6b8a75a53 (patch) | |
tree | aadb6e349d966b7abe5148b7155f698a845d4cd5 /llvm/lib/Target/X86/X86ISelLowering.cpp | |
parent | 9e5e045b600ae21326a92c9796f8d16a78582ec4 (diff) | |
download | bcm5719-llvm-f3b5943ffca79a3c8ef5c7734e6c7df6b8a75a53.tar.gz bcm5719-llvm-f3b5943ffca79a3c8ef5c7734e6c7df6b8a75a53.zip |
Remove lambda default argument to fix gcc pedantic warning.
llvm-svn: 339767
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 8a4b0ffe177..65954f5bfc2 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -30283,7 +30283,7 @@ static SDValue combineX86ShufflesRecursively( // 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 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) || |