[llvm] r175464 - X86FrameLowering.cpp: Fix a warning in -Asserts. [-Wunused-variable]

NAKAMURA Takumi geek4civic at gmail.com
Mon Feb 18 15:08:50 PST 2013


Author: chapuni
Date: Mon Feb 18 17:08:49 2013
New Revision: 175464

URL: http://llvm.org/viewvc/llvm-project?rev=175464&view=rev
Log:
X86FrameLowering.cpp: Fix a warning in -Asserts. [-Wunused-variable]

Modified:
    llvm/trunk/lib/Target/X86/X86FrameLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FrameLowering.cpp?rev=175464&r1=175463&r2=175464&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.cpp Mon Feb 18 17:08:49 2013
@@ -1631,7 +1631,6 @@ X86FrameLowering::adjustForSegmentedStac
 //	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<X86Subtarget>();
   MachineFrameInfo *MFI = MF.getFrameInfo();
   const uint64_t SlotSize = TM.getRegisterInfo()->getSlotSize();
   const bool Is64Bit = STI.is64Bit();
@@ -1645,7 +1644,7 @@ void X86FrameLowering::adjustForHiPEProl
   unsigned MaxStack =
     MFI->getStackSize() + CallerStkArity * SlotSize + SlotSize;
 
-  assert(ST->isTargetLinux() &&
+  assert(getTarget().getSubtarget<X86Subtarget>()->ST->isTargetLinux() &&
          "HiPE prologue is only supported on Linux operating systems.");
 
   // Compute the largest caller's frame that is needed to fit the callees'





More information about the llvm-commits mailing list