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

parent is non-null. It now always is.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53263 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-07-08 23:59:09 +00:00
parent f1bf29e648
commit 4e526b9a5b

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;
}