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 | 658b9476f0c06ae025ce6a8fa83850fd52cb2a31 (patch) | |
tree | af3e1a929d4e2d5426c5cce75cb1b3cd82f7079e /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | f6acb34d239ed2828fce6bc2c1a69d92354df73a (diff) | |
download | bcm5719-llvm-658b9476f0c06ae025ce6a8fa83850fd52cb2a31.tar.gz bcm5719-llvm-658b9476f0c06ae025ce6a8fa83850fd52cb2a31.zip |
Initialize some variables the compiler warns about.
llvm-svn: 29277
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 2293be60b19..a767cd971ea 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/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(); |