[llvm] r195905 - Remove the variable only used by assert to avoid the build failure

Jiangning Liu jiangning.liu at arm.com
Wed Nov 27 17:34:55 PST 2013


Author: jiangning
Date: Wed Nov 27 19:34:55 2013
New Revision: 195905

URL: http://llvm.org/viewvc/llvm-project?rev=195905&view=rev
Log:
Remove the variable only used by assert to avoid the build failure
caused by build options [-Werror,-Wunused-variable].

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp?rev=195905&r1=195904&r2=195905&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp Wed Nov 27 19:34:55 2013
@@ -4241,8 +4241,8 @@ AArch64TargetLowering::LowerVECTOR_SHUFF
     // Test if V1 is a CONCAT_VECTORS.
     if (V1.getOpcode() == ISD::CONCAT_VECTORS) {
       if (V1.getOperand(1).getOpcode() == ISD::UNDEF) {
-        int V1EltNum = V1.getOperand(0).getValueType().getVectorNumElements();
-        assert((Lane < V1EltNum) && "Invalid vector lane access");
+        assert((Lane < V1.getOperand(0).getValueType().getVectorNumElements())
+               && "Invalid vector lane access");
         return DAG.getNode(AArch64ISD::NEON_VDUPLANE, dl, VT, V1.getOperand(0),
                            DAG.getConstant(Lane, MVT::i64));
       }





More information about the llvm-commits mailing list