mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
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
286e8f7295
commit
9f1547684c
@ -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
Block a user