From 653e2513f5fd5603d69359c776d41bd02e858913 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 10 Mar 2017 22:10:34 +0000 Subject: [PATCH] [X86] Fix Wunused-lambda-capture warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297521 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 872f3d5d12a..0a530752662 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -5308,8 +5308,8 @@ static bool getTargetConstantBitsFromNode(SDValue Op, unsigned EltSizeInBits, }; // Collect constant bits and insert into mask/undef bit masks. - auto CollectConstantBits = [SizeInBits](const Constant *Cst, APInt &Mask, - APInt &Undefs, unsigned BitOffset) { + auto CollectConstantBits = [](const Constant *Cst, APInt &Mask, APInt &Undefs, + unsigned BitOffset) { if (!Cst) return false; unsigned CstSizeInBits = Cst->getType()->getPrimitiveSizeInBits();