[llvm-commits] [llvm] r124346 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Matt Beaumont-Gay matthewbg at google.com
Wed Jan 26 17:47:50 PST 2011


Author: matthewbg
Date: Wed Jan 26 19:47:50 2011
New Revision: 124346

URL: http://llvm.org/viewvc/llvm-project?rev=124346&view=rev
Log:
Opt-mode -Wunused-variable cleanup

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=124346&r1=124345&r2=124346&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Wed Jan 26 19:47:50 2011
@@ -2875,8 +2875,7 @@
              "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 @@
       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!");
       }





More information about the llvm-commits mailing list