1
0
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:
Dan Gohman 2008-07-08 23:59:09 +00:00
parent 286e8f7295
commit 9f1547684c

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