Fix warning
[oota-llvm.git] / lib / CodeGen / InstrSelection / InstrSelection.cpp
index a2e9bb642e4eb585e45da8752cd391a2d5f5b0cc..c7bf70c806bbb546b1646c7150d9f03d2ab214f7 100644 (file)
@@ -220,7 +220,7 @@ InstructionSelection::InsertCodeForPhis(Function &F)
 
 void
 InstructionSelection::InsertPhiElimInstructions(BasicBlock *BB,
-                                                const vector<MachineInstr*>& CpVec)
+                                            const vector<MachineInstr*>& CpVec)
 { 
   Instruction *TermInst = (Instruction*)BB->getTerminator();
   MachineCodeForInstruction &MC4Term = MachineCodeForInstruction::get(TermInst);
@@ -228,10 +228,10 @@ InstructionSelection::InsertPhiElimInstructions(BasicBlock *BB,
   assert (FirstMIOfTerm && "No Machine Instrs for terminator");
 
   MachineFunction &MF = MachineFunction::get(BB->getParent());
-  MachineBasicBlock *MBB;
 
   // FIXME: if PHI instructions existed in the machine code, this would be
   // unnecesary.
+  MachineBasicBlock *MBB = 0;
   for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I)
     if (I->getBasicBlock() == BB) {
       MBB = I;