diff options
author | Matt Beaumont-Gay <matthewbg@google.com> | 2011-01-27 02:39:27 +0000 |
---|---|---|
committer | Matt Beaumont-Gay <matthewbg@google.com> | 2011-01-27 02:39:27 +0000 |
commit | a148c59231add155298555996e3d01b521c2628a (patch) | |
tree | 6fb9170254bedde684f8cc589a5905b7e7705072 /llvm/lib/CodeGen/SelectionDAG | |
parent | 08432c8e003f6fc2274f7d9bd20dc901348363ed (diff) | |
download | bcm5719-llvm-a148c59231add155298555996e3d01b521c2628a.tar.gz bcm5719-llvm-a148c59231add155298555996e3d01b521c2628a.zip |
Try harder to not have unused variables.
llvm-svn: 124350
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 08b7ae29bda..d14cae39192 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/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<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!"); |