From 0dfac4002b7cea3308019c138133ec96fd3e90d0 Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Mon, 1 Dec 2014 23:27:45 +0000 Subject: [PATCH] Try to fix a bot failure due to a variable used only in an assert. Specifically, bot lld-x86_64-darwin13. Resulting from change 223085. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223092 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86FrameLowering.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Target/X86/X86FrameLowering.cpp b/lib/Target/X86/X86FrameLowering.cpp index 278e4f910d4..f8ada8db292 100644 --- a/lib/Target/X86/X86FrameLowering.cpp +++ b/lib/Target/X86/X86FrameLowering.cpp @@ -1137,13 +1137,13 @@ int X86FrameLowering::getFrameIndexReference(const MachineFunction &MF, int FI, // Simplified from getFrameIndexOffset keeping only StackPointer cases int X86FrameLowering::getFrameIndexOffsetFromSP(const MachineFunction &MF, int FI) const { - const X86RegisterInfo *RegInfo = - static_cast(MF.getSubtarget().getRegisterInfo()); const MachineFrameInfo *MFI = MF.getFrameInfo(); - const uint64_t StackSize = MFI->getStackSize(); //not including dynamic realign - + // Does not include any dynamic realign. + const uint64_t StackSize = MFI->getStackSize(); { #ifndef NDEBUG + const X86RegisterInfo *RegInfo = + static_cast(MF.getSubtarget().getRegisterInfo()); // Note: LLVM arranges the stack as: // Args > Saved RetPC (<--FP) > CSRs > dynamic alignment (<--BP) // > "Stack Slots" (<--SP)