From 7001cac6c5c028576551d8dd56551311d31b9010 Mon Sep 17 00:00:00 2001 From: Matt Beaumont-Gay Date: Thu, 27 Jan 2011 02:39:27 +0000 Subject: [PATCH] Try harder to not have unused variables. llvm-svn: 124350 --- lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 08b7ae29bda..d14cae39192 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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(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(Index.getNode())) { + (void)CSD; assert((N2.getValueType().getVectorNumElements() + CSD->getZExtValue() <= VT.getVectorNumElements()) && "Insert subvector overflow!");