diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-07-25 20:44:41 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-07-25 20:44:41 +0000 |
commit | 9160a6a18fdd091717cc3375bbac604d1949a65c (patch) | |
tree | dd73a38b3d41193583b660a0cceeca4c2b744838 /lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 55fc28076fa48723bd170e51638b3b5974ca0fa1 (diff) |
Initialize some variables the compiler warns about.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 2293be60b1..a767cd971e 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -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(); |