mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
f1bf29e648
commit
4e526b9a5b
@ -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