Permalink
Browse files

Update SPLimitOff for x86

  • Loading branch information...
1 parent 92e5087 commit 9879b3f0ed3a294ffa7bbe7d2656064dfad52a98 @yiannist committed Feb 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Target/X86/X86FrameLowering.cpp
@@ -1595,7 +1595,7 @@ void X86FrameLowering::adjustForHiPEPrologue(MachineFunction &MF) const {
SPReg, false, -MaxStack);
unsigned Opc2 = Is64Bit ? X86::CMP64rm : X86::CMP32rm;
// SPLimitOff is in a fixed heap location (when not in reg)
- const unsigned SPLimitOff = Is64Bit ? 0x90 : 0x24;
+ const unsigned SPLimitOff = Is64Bit ? 0x90 : 0x4c;
addRegOffset(BuildMI(stackCheckMBB, DL, TII.get(Opc2), TempReg),
PReg, false, SPLimitOff);
BuildMI(stackCheckMBB, DL, TII.get(X86::JAE_4)).addMBB(&prologueMBB);

0 comments on commit 9879b3f

Please sign in to comment.