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.
|
/// return null.
|
||||||
MachineRegisterInfo *MachineInstr::getRegInfo() {
|
MachineRegisterInfo *MachineInstr::getRegInfo() {
|
||||||
if (MachineBasicBlock *MBB = getParent())
|
if (MachineBasicBlock *MBB = getParent())
|
||||||
if (MachineFunction *MF = MBB->getParent())
|
return &MBB->getParent()->getRegInfo();
|
||||||
return &MF->getRegInfo();
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue