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 | 4789aca85eb783865c0a763352a7585fa6f65248 (patch) | |
tree | 4a9259612bdf02ff65c96fbd42bf70c0d80275ae /lib/CodeGen | |
parent | a8af137847c07ae01a7bd7a3e7e11cbd449e823c (diff) | |
download | external_llvm-4789aca85eb783865c0a763352a7585fa6f65248.zip external_llvm-4789aca85eb783865c0a763352a7585fa6f65248.tar.gz external_llvm-4789aca85eb783865c0a763352a7585fa6f65248.tar.bz2 |
Try harder to not have unused variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124350 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 08b7ae2..d14cae3 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<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!"); |