It's no longer necessary to test if a MachineBasicBlock's

parent is non-null. It now always is.

llvm-svn: 53263
This commit is contained in:
Dan Gohman 2008-07-08 23:59:09 +00:00
parent 8293650d90
commit f188fa4499
1 changed files with 1 additions and 2 deletions

View File

@ -348,8 +348,7 @@ int MachineInstr::getOpcode() const {
/// return null.
MachineRegisterInfo *MachineInstr::getRegInfo() {
if (MachineBasicBlock *MBB = getParent())
if (MachineFunction *MF = MBB->getParent())
return &MF->getRegInfo();
return &MBB->getParent()->getRegInfo();
return 0;
}