diff options
Diffstat (limited to 'lib/Target/SparcV9/InstrSelection/InstrSelection.cpp')
-rw-r--r-- | lib/Target/SparcV9/InstrSelection/InstrSelection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp b/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp index cd0ca6645a..af02e57616 100644 --- a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp +++ b/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp @@ -159,7 +159,7 @@ SelectInstructionsForMethod(Method* method, TargetMachine &target) void InsertPhiElimInst(BasicBlock *BB, MachineInstr *CpMI) { - TerminatorInst *TermInst = BB->getTerminator(); + Instruction *TermInst = (Instruction*)BB->getTerminator(); MachineCodeForInstruction &MC4Term = MachineCodeForInstruction::get(TermInst); MachineInstr *FirstMIOfTerm = *( MC4Term.begin() ); |