Use MachineBasicBlock::getParent().

llvm-svn: 11756
This commit is contained in:
Alkis Evlogimenos 2004-02-23 18:36:38 +00:00
parent d780ce6462
commit b525d54045
1 changed files with 1 additions and 2 deletions

View File

@ -60,8 +60,7 @@ void ilist_traits<MachineInstr>::transferNodesFromList(
MachineBasicBlock::iterator MachineBasicBlock::getFirstTerminator()
{
const TargetInstrInfo& TII = MachineFunction::get(
getBasicBlock()->getParent()).getTarget().getInstrInfo();
const TargetInstrInfo& TII = getParent()->getTarget().getInstrInfo();
iterator I = end();
while (I != begin() && TII.isTerminatorInstr((--I)->getOpcode()));
if (I != end() && !TII.isTerminatorInstr(I->getOpcode())) ++I;