... instead of explicitly conditioning on NDEBUG. Also use an easier to
read conditional expression.
(Addresses post-commit review from David Blaikie.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272762
91177308-0d34-0410-b5e6-
96231b3b80d8
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
+ assert(MF.getInfo<X86MachineFunctionInfo>()->getTCReturnAddrDelta() >= 0 &&
+ "we don't handle this case!");
// Fill in FrameReg output argument.
FrameReg = TRI->getStackRegister();