From a614ec7e6f7910a150d18af848f06d11fa66ea3a Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Mon, 18 Feb 2013 23:08:49 +0000 Subject: [PATCH] X86FrameLowering.cpp: Fix a warning in -Asserts. [-Wunused-variable] llvm-svn: 175464 --- llvm/lib/Target/X86/X86FrameLowering.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp index 038c395..a52c4d9 100644 --- a/llvm/lib/Target/X86/X86FrameLowering.cpp +++ b/llvm/lib/Target/X86/X86FrameLowering.cpp @@ -1631,7 +1631,6 @@ X86FrameLowering::adjustForSegmentedStacks(MachineFunction &MF) const { // if( temp0 < SP_LIMIT(P) ) goto IncStack else goto OldStart void X86FrameLowering::adjustForHiPEPrologue(MachineFunction &MF) const { const X86InstrInfo &TII = *TM.getInstrInfo(); - const X86Subtarget *ST = &MF.getTarget().getSubtarget(); MachineFrameInfo *MFI = MF.getFrameInfo(); const uint64_t SlotSize = TM.getRegisterInfo()->getSlotSize(); const bool Is64Bit = STI.is64Bit(); @@ -1645,7 +1644,7 @@ void X86FrameLowering::adjustForHiPEPrologue(MachineFunction &MF) const { unsigned MaxStack = MFI->getStackSize() + CallerStkArity * SlotSize + SlotSize; - assert(ST->isTargetLinux() && + assert(getTarget().getSubtarget()->ST->isTargetLinux() && "HiPE prologue is only supported on Linux operating systems."); // Compute the largest caller's frame that is needed to fit the callees' -- 2.7.4