From 0929f1339a162688ca7f5b57f244937815e30e06 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Mon, 16 Nov 2015 18:47:12 +0000 Subject: [PATCH] Use the subtarget reference that we already have git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253244 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86FrameLowering.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Target/X86/X86FrameLowering.cpp b/lib/Target/X86/X86FrameLowering.cpp index 394151b0b06..3c557fe8a11 100644 --- a/lib/Target/X86/X86FrameLowering.cpp +++ b/lib/Target/X86/X86FrameLowering.cpp @@ -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().isTargetWin64() && - !MBB.succ_empty() && !MBB.isReturnBlock()) + if (STI.isTargetWin64() && !MBB.succ_empty() && !MBB.isReturnBlock()) return false; if (canUseLEAForSPInEpilogue(*MBB.getParent())) -- 2.34.1