diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-11-09 00:49:43 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-11-09 00:49:43 +0000 |
| commit | a2620ac1568a788a122ecfd5c03d136e92dd38fe (patch) | |
| tree | 895ee544d9cd691e289cc54898265bf736600c8b /llvm/lib/CodeGen | |
| parent | 63aeefeafba129ae4cbc3cc3bf007a064b978e06 (diff) | |
| download | bcm5719-llvm-a2620ac1568a788a122ecfd5c03d136e92dd38fe.tar.gz bcm5719-llvm-a2620ac1568a788a122ecfd5c03d136e92dd38fe.zip | |
Fix warning
llvm-svn: 4649
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp index a2e9bb642e4..c7bf70c806b 100644 --- a/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp +++ b/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp @@ -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; |

