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 | 0cddbf2bdf4130ae0a3fc5cf5a929f76840cd978 (patch) | |
| tree | db15d457860a67052ffb71f64032433a3931f734 /llvm/lib/CodeGen/SelectionDAG | |
| parent | 0693defea9521e6bb0be6bf51fb2f14de7473197 (diff) | |
| download | bcm5719-llvm-0cddbf2bdf4130ae0a3fc5cf5a929f76840cd978.tar.gz bcm5719-llvm-0cddbf2bdf4130ae0a3fc5cf5a929f76840cd978.zip | |
Opt-mode -Wunused-variable cleanup
llvm-svn: 124346
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 661f8108476..08b7ae29bda 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/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!"); } |

