diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-12-07 07:58:55 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-12-07 07:58:55 +0000 |
commit | b3ec329c14fa3d37b5963f188db54ba03c6b97c0 (patch) | |
tree | 201d59265b4066f0676f87c992464ab18d6f6e88 | |
parent | c61751373ab58f226ec37368c139404e67e847c0 (diff) | |
download | external_llvm-b3ec329c14fa3d37b5963f188db54ba03c6b97c0.zip external_llvm-b3ec329c14fa3d37b5963f188db54ba03c6b97c0.tar.gz external_llvm-b3ec329c14fa3d37b5963f188db54ba03c6b97c0.tar.bz2 |
Adjust the stack by one pointer size for all frameless stacks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146030 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86FrameLowering.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/X86/X86FrameLowering.cpp b/lib/Target/X86/X86FrameLowering.cpp index c0e86ca..0360436 100644 --- a/lib/Target/X86/X86FrameLowering.cpp +++ b/lib/Target/X86/X86FrameLowering.cpp @@ -561,7 +561,8 @@ uint32_t X86FrameLowering::getCompactUnwindEncoding(MachineFunction &MF) const { CompactUnwindEncoding |= (StackAdjust & 0xFF) << 16; CompactUnwindEncoding |= RegEnc & 0x7FFF; } else { - uint32_t TotalStackSize = StackAdjust + StackSize + 1; + ++StackAdjust; + uint32_t TotalStackSize = StackAdjust + StackSize; if ((TotalStackSize & 0xFF) == TotalStackSize) { // Frameless stack with a small stack size. CompactUnwindEncoding |= 0x02000000; |