Initialize some variables the compiler warns about.
authorReid Spencer <rspencer@reidspencer.com>
Tue, 25 Jul 2006 20:44:41 +0000 (20:44 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 25 Jul 2006 20:44:41 +0000 (20:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29277 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index 2293be60b19aefe09bd759378956f8db92cca76b..a767cd971eaf3736948e57db250ce1d1ae182b2c 100644 (file)
@@ -2603,7 +2603,7 @@ SDOperand DAGCombiner::visitVECTOR_SHUFFLE(SDNode *N) {
   bool isUnary = true;
   bool isSplat = true;
   int VecNum = -1;
-  unsigned BaseIdx;
+  unsigned BaseIdx = 0;
   for (unsigned i = 0; i != NumElts; ++i)
     if (ShufMask.getOperand(i).getOpcode() != ISD::UNDEF) {
       unsigned Idx = cast<ConstantSDNode>(ShufMask.getOperand(i))->getValue();
@@ -2722,7 +2722,7 @@ SDOperand DAGCombiner::visitVVECTOR_SHUFFLE(SDNode *N) {
   bool isUnary = true;
   bool isSplat = true;
   int VecNum = -1;
-  unsigned BaseIdx;
+  unsigned BaseIdx = 0;
   for (unsigned i = 0; i != NumElts; ++i)
     if (ShufMask.getOperand(i).getOpcode() != ISD::UNDEF) {
       unsigned Idx = cast<ConstantSDNode>(ShufMask.getOperand(i))->getValue();