diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-02-18 23:08:49 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-02-18 23:08:49 +0000 |
commit | 82f7815e6f7819223b5f311195bfc1d9645d4754 (patch) | |
tree | c4bd9b328e423bb798412d83820a5f407ff3278b | |
parent | 20ea2bc391bf72480998f456494011636dc19fea (diff) | |
download | external_llvm-82f7815e6f7819223b5f311195bfc1d9645d4754.zip external_llvm-82f7815e6f7819223b5f311195bfc1d9645d4754.tar.gz external_llvm-82f7815e6f7819223b5f311195bfc1d9645d4754.tar.bz2 |
X86FrameLowering.cpp: Fix a warning in -Asserts. [-Wunused-variable]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175464 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86FrameLowering.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/X86/X86FrameLowering.cpp b/lib/Target/X86/X86FrameLowering.cpp index 038c395..a52c4d9 100644 --- a/lib/Target/X86/X86FrameLowering.cpp +++ b/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<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' |