forked from OSchip/llvm-project
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:
parent
8293650d90
commit
f188fa4499
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue