X86FrameLowering.cpp: Fix a warning in -Asserts. [-Wunused-variable]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 18 Feb 2013 23:08:49 +0000 (23:08 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 18 Feb 2013 23:08:49 +0000 (23:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175464 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FrameLowering.cpp

index 038c39532f8ae1486234bc6e1c4b88646b510b55..a52c4d93e8dd9dd34b563b3df2da2fbac0189d10 100644 (file)
@@ -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<X86Subtarget>();
   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<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'