summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-09 00:49:43 +0000
committerChris Lattner <sabre@nondot.org>2002-11-09 00:49:43 +0000
commita2620ac1568a788a122ecfd5c03d136e92dd38fe (patch)
tree895ee544d9cd691e289cc54898265bf736600c8b /llvm/lib/CodeGen
parent63aeefeafba129ae4cbc3cc3bf007a064b978e06 (diff)
downloadbcm5719-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.cpp4
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;
OpenPOWER on IntegriCloud