diff options
author | Matt Beaumont-Gay <matthewbg@google.com> | 2011-01-27 01:47:50 +0000 |
---|---|---|
committer | Matt Beaumont-Gay <matthewbg@google.com> | 2011-01-27 01:47:50 +0000 |
commit | a8af137847c07ae01a7bd7a3e7e11cbd449e823c (patch) | |
tree | 72a0a27d2a2c4dc7e52667418f6914900fffb46c /lib/CodeGen | |
parent | 39078a8bde256ee22e981713a4d2ff8235dc7706 (diff) | |
download | external_llvm-a8af137847c07ae01a7bd7a3e7e11cbd449e823c.zip external_llvm-a8af137847c07ae01a7bd7a3e7e11cbd449e823c.tar.gz external_llvm-a8af137847c07ae01a7bd7a3e7e11cbd449e823c.tar.bz2 |
Opt-mode -Wunused-variable cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 661f810..08b7ae2 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2875,8 +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())) { - uint64_t Idx = CSD->getZExtValue(); - assert((VT.getVectorNumElements() + Idx + assert((VT.getVectorNumElements() + CSD->getZExtValue() <= N1.getValueType().getVectorNumElements()) && "Extract subvector overflow!"); } @@ -3094,8 +3093,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())) { - uint64_t Idx = CSD->getZExtValue(); - assert((N2.getValueType().getVectorNumElements() + Idx + assert((N2.getValueType().getVectorNumElements() + CSD->getZExtValue() <= VT.getVectorNumElements()) && "Insert subvector overflow!"); } |