[X86] Fix Wunused-lambda-capture warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297521 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Simon Pilgrim 2017-03-10 22:10:34 +00:00
parent be5b44e27d
commit 653e2513f5

View File

@ -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();