diff --git a/lib/Target/X86/X86FrameLowering.cpp b/lib/Target/X86/X86FrameLowering.cpp index a52c4d93e8d..c98c80db1a0 100644 --- a/lib/Target/X86/X86FrameLowering.cpp +++ b/lib/Target/X86/X86FrameLowering.cpp @@ -1644,7 +1644,7 @@ void X86FrameLowering::adjustForHiPEPrologue(MachineFunction &MF) const { unsigned MaxStack = MFI->getStackSize() + CallerStkArity * SlotSize + SlotSize; - assert(getTarget().getSubtarget()->ST->isTargetLinux() && + assert(MF.getTarget().getSubtarget().isTargetLinux() && "HiPE prologue is only supported on Linux operating systems."); // Compute the largest caller's frame that is needed to fit the callees'