From 0006bd75201f340b95c1dbf71e50dc5de5ed9425 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 9 Nov 2002 00:49:43 +0000 Subject: Fix warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4649 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/InstrSelection/InstrSelection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen') diff --git a/lib/CodeGen/InstrSelection/InstrSelection.cpp b/lib/CodeGen/InstrSelection/InstrSelection.cpp index a2e9bb6..c7bf70c 100644 --- a/lib/CodeGen/InstrSelection/InstrSelection.cpp +++ b/lib/CodeGen/InstrSelection/InstrSelection.cpp @@ -220,7 +220,7 @@ InstructionSelection::InsertCodeForPhis(Function &F) void InstructionSelection::InsertPhiElimInstructions(BasicBlock *BB, - const vector& CpVec) + const vector& 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; -- cgit v1.1