aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9
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
commit0006bd75201f340b95c1dbf71e50dc5de5ed9425 (patch)
treeb92a619dde2fc0aec7a6209ea840eeaa50a525d4 /lib/Target/SparcV9
parentbf10f05bf731b00979bb38f9c0c3d7a1145d8859 (diff)
downloadexternal_llvm-0006bd75201f340b95c1dbf71e50dc5de5ed9425.zip
external_llvm-0006bd75201f340b95c1dbf71e50dc5de5ed9425.tar.gz
external_llvm-0006bd75201f340b95c1dbf71e50dc5de5ed9425.tar.bz2
Fix warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9')
-rw-r--r--lib/Target/SparcV9/InstrSelection/InstrSelection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp b/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp
index a2e9bb6..c7bf70c 100644
--- a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp
+++ b/lib/Target/SparcV9/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;