[llvm] r297521 - [X86] Fix Wunused-lambda-capture warning
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 10 14:10:34 PST 2017
Author: rksimon
Date: Fri Mar 10 16:10:34 2017
New Revision: 297521
URL: http://llvm.org/viewvc/llvm-project?rev=297521&view=rev
Log:
[X86] Fix Wunused-lambda-capture 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=297521&r1=297520&r2=297521&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri Mar 10 16:10:34 2017
@@ -5308,8 +5308,8 @@ static bool getTargetConstantBitsFromNod
};
// 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();
More information about the llvm-commits
mailing list