mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Adjust the stack by one pointer size for all frameless stacks.
llvm-svn: 146030
This commit is contained in:
parent
757cba38ba
commit
4741665fb1
@ -561,7 +561,8 @@ uint32_t X86FrameLowering::getCompactUnwindEncoding(MachineFunction &MF) const {
|
|||||||
CompactUnwindEncoding |= (StackAdjust & 0xFF) << 16;
|
CompactUnwindEncoding |= (StackAdjust & 0xFF) << 16;
|
||||||
CompactUnwindEncoding |= RegEnc & 0x7FFF;
|
CompactUnwindEncoding |= RegEnc & 0x7FFF;
|
||||||
} else {
|
} else {
|
||||||
uint32_t TotalStackSize = StackAdjust + StackSize + 1;
|
++StackAdjust;
|
||||||
|
uint32_t TotalStackSize = StackAdjust + StackSize;
|
||||||
if ((TotalStackSize & 0xFF) == TotalStackSize) {
|
if ((TotalStackSize & 0xFF) == TotalStackSize) {
|
||||||
// Frameless stack with a small stack size.
|
// Frameless stack with a small stack size.
|
||||||
CompactUnwindEncoding |= 0x02000000;
|
CompactUnwindEncoding |= 0x02000000;
|
||||||
|
Loading…
Reference in New Issue
Block a user