summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FrameLowering.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/X86/X86FrameLowering.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FrameLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp
index 975eb0c4513..043e833bc78 100644
--- a/llvm/lib/Target/X86/X86FrameLowering.cpp
+++ b/llvm/lib/Target/X86/X86FrameLowering.cpp
@@ -1773,10 +1773,12 @@ X86FrameLowering::getFrameIndexReferenceFromSP(const MachineFunction &MF,
const TargetFrameLowering *TFI = MF.getSubtarget().getFrameLowering();
if (!AllowSPAdjustment && !TFI->hasReservedCallFrame(MF))
return None;
+#ifndef NDEBUG
// We don't handle tail calls, and shouldn't be seeing them either.
int TailCallReturnAddrDelta =
MF.getInfo<X86MachineFunctionInfo>()->getTCReturnAddrDelta();
assert(!(TailCallReturnAddrDelta < 0) && "we don't handle this case!");
+#endif
// Fill in FrameReg output argument.
FrameReg = TRI->getStackRegister();
OpenPOWER on IntegriCloud