Use the subtarget reference that we already have

llvm-svn: 253244
This commit is contained in:
Reid Kleckner 2015-11-16 18:47:12 +00:00
parent b7bbc53314
commit 4255b04e7b
1 changed files with 1 additions and 2 deletions

View File

@ -2568,8 +2568,7 @@ bool X86FrameLowering::canUseAsEpilogue(const MachineBasicBlock &MBB) const {
// not taking a chance at messing with them.
// I.e., unless this block is already an exit block, we can't use
// it as an epilogue.
if (MBB.getParent()->getSubtarget<X86Subtarget>().isTargetWin64() &&
!MBB.succ_empty() && !MBB.isReturnBlock())
if (STI.isTargetWin64() && !MBB.succ_empty() && !MBB.isReturnBlock())
return false;
if (canUseLEAForSPInEpilogue(*MBB.getParent()))