diff options
author | Justin Bogner <mail@justinbogner.com> | 2017-10-10 23:50:49 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2017-10-10 23:50:49 +0000 |
commit | fdf9bf4f16739daa62fa8d9177b1c3a8346728ae (patch) | |
tree | 8184e1ecc06220f23157214474c5ae63e04a1050 /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
parent | 0bf7717a02cd483e0272c30195da1740efcae9ed (diff) | |
download | bcm5719-llvm-fdf9bf4f16739daa62fa8d9177b1c3a8346728ae.tar.gz bcm5719-llvm-fdf9bf4f16739daa62fa8d9177b1c3a8346728ae.zip |
CodeGen: Minor cleanups to use MachineInstr::getMF. NFC
Since r315388 we have a shorter way to say this, so we'll replace
MI->getParent()->getParent() with MI->getMF() in a few places.
llvm-svn: 315390
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index ea655e1faac..ec971e147eb 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -866,7 +866,7 @@ MachineBasicBlock * TargetLoweringBase::emitPatchPoint(MachineInstr &InitialMI, MachineBasicBlock *MBB) const { MachineInstr *MI = &InitialMI; - MachineFunction &MF = *MI->getParent()->getParent(); + MachineFunction &MF = *MI->getMF(); MachineFrameInfo &MFI = MF.getFrameInfo(); // We're handling multiple types of operands here: |