mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
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
This commit is contained in:
parent
78cc6fcb01
commit
0dfac4002b
@ -1137,13 +1137,13 @@ int X86FrameLowering::getFrameIndexReference(const MachineFunction &MF, int FI,
|
|||||||
|
|
||||||
// Simplified from getFrameIndexOffset keeping only StackPointer cases
|
// Simplified from getFrameIndexOffset keeping only StackPointer cases
|
||||||
int X86FrameLowering::getFrameIndexOffsetFromSP(const MachineFunction &MF, int FI) const {
|
int X86FrameLowering::getFrameIndexOffsetFromSP(const MachineFunction &MF, int FI) const {
|
||||||
const X86RegisterInfo *RegInfo =
|
|
||||||
static_cast<const X86RegisterInfo*>(MF.getSubtarget().getRegisterInfo());
|
|
||||||
const MachineFrameInfo *MFI = MF.getFrameInfo();
|
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
|
#ifndef NDEBUG
|
||||||
|
const X86RegisterInfo *RegInfo =
|
||||||
|
static_cast<const X86RegisterInfo*>(MF.getSubtarget().getRegisterInfo());
|
||||||
// Note: LLVM arranges the stack as:
|
// Note: LLVM arranges the stack as:
|
||||||
// Args > Saved RetPC (<--FP) > CSRs > dynamic alignment (<--BP)
|
// Args > Saved RetPC (<--FP) > CSRs > dynamic alignment (<--BP)
|
||||||
// > "Stack Slots" (<--SP)
|
// > "Stack Slots" (<--SP)
|
||||||
|
Loading…
Reference in New Issue
Block a user