[llvm-commits] CVS: llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 8 18:50:10 PST 2002
Changes in directory llvm/lib/CodeGen/InstrSelection:
InstrSelection.cpp updated: 1.53 -> 1.54
---
Log message:
Fix warning
---
Diffs of the changes:
Index: llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp
diff -u llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp:1.53 llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp:1.54
--- llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp:1.53 Mon Oct 28 13:01:16 2002
+++ llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp Fri Nov 8 18:49:16 2002
@@ -220,7 +220,7 @@
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 @@
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;
More information about the llvm-commits
mailing list