Try harder to not have unused variables.
authorMatt Beaumont-Gay <matthewbg@google.com>
Thu, 27 Jan 2011 02:39:27 +0000 (02:39 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Thu, 27 Jan 2011 02:39:27 +0000 (02:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124350 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 08b7ae29bda943de3c66d880c4942268405e5fc7..d14cae39192358be7c7eed432e001be8ca17b40c 100644 (file)
@@ -2875,6 +2875,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL, EVT VT,
              "Extract subvector must be from larger vector to smaller vector!");
 
       if (ConstantSDNode *CSD = dyn_cast<ConstantSDNode>(Index.getNode())) {
+        (void)CSD;
         assert((VT.getVectorNumElements() + CSD->getZExtValue()
                 <= N1.getValueType().getVectorNumElements())
                && "Extract subvector overflow!");
@@ -3093,6 +3094,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL, EVT VT,
       assert(N2.getValueType().getSimpleVT() <= N1.getValueType().getSimpleVT() &&
              "Insert subvector must be from smaller vector to larger vector!");
       if (ConstantSDNode *CSD = dyn_cast<ConstantSDNode>(Index.getNode())) {
+        (void)CSD;
         assert((N2.getValueType().getVectorNumElements() + CSD->getZExtValue()
                 <= VT.getVectorNumElements())
                && "Insert subvector overflow!");