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 | a614ec7e6f7910a150d18af848f06d11fa66ea3a (patch) | |
tree | 34faafb851b0bb24dd77fb698ce1681fe2ebee90 /llvm/lib/Target | |
parent | 441e81287f1e69313242992aaabc8c44941e2d85 (diff) | |
download | bcm5719-llvm-a614ec7e6f7910a150d18af848f06d11fa66ea3a.tar.gz bcm5719-llvm-a614ec7e6f7910a150d18af848f06d11fa66ea3a.zip |
X86FrameLowering.cpp: Fix a warning in -Asserts. [-Wunused-variable]
llvm-svn: 175464
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/X86/X86FrameLowering.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp index 038c39532f8..a52c4d93e8d 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<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' |