[llvm] r229977 - Fix build in release mode, -Wunused-variable on this lambda function used only in an assert.

Nick Lewycky nicholas at mxc.ca
Thu Feb 19 23:16:17 PST 2015


Author: nicholas
Date: Fri Feb 20 01:16:17 2015
New Revision: 229977

URL: http://llvm.org/viewvc/llvm-project?rev=229977&view=rev
Log:
Fix build in release mode, -Wunused-variable on this lambda function used only in an assert.

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=229977&r1=229976&r2=229977&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri Feb 20 01:16:17 2015
@@ -8241,6 +8241,7 @@ static SDValue lowerV8I16VectorShuffle(S
     return ZExt;
 
   auto isV1 = [](int M) { return M >= 0 && M < 8; };
+  (void)isV1;
   auto isV2 = [](int M) { return M >= 8; };
 
   int NumV2Inputs = std::count_if(Mask.begin(), Mask.end(), isV2);





More information about the llvm-commits mailing list