Avoid warnings.
authorBob Wilson <bob.wilson@apple.com>
Tue, 14 Sep 2010 21:12:05 +0000 (21:12 +0000)
committerBob Wilson <bob.wilson@apple.com>
Tue, 14 Sep 2010 21:12:05 +0000 (21:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113857 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMExpandPseudoInsts.cpp

index 9dbf29d85a9b32699e13aac4599f18412c071f1e..79fcfe8d1c14ddaf89e9db22ea4a568679c31c8b 100644 (file)
@@ -450,8 +450,9 @@ void ARMExpandPseudo::ExpandLaneOp(MachineBasicBlock::iterator &MBBI) {
   }
   assert(Lane < RegElts && "out of range lane for VLD/VST-lane");
 
-  unsigned DstReg, D0, D1, D2, D3;
-  bool DstIsDead;
+  unsigned D0, D1, D2, D3;
+  unsigned DstReg = 0;
+  bool DstIsDead = false;
   if (TableEntry->IsLoad) {
     DstIsDead = MI.getOperand(OpIdx).isDead();
     DstReg = MI.getOperand(OpIdx++).getReg();