diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/t_x86-64_emit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/t_x86-64_emit.c b/src/t_x86-64_emit.c index 616ccf4..6079f3c 100644 --- a/src/t_x86-64_emit.c +++ b/src/t_x86-64_emit.c @@ -1360,7 +1360,6 @@ emitbin(Function *fn) DS("\x55\x48\x89\xE5"); } saverestore = npush = calleesave(pcode, fn); - npush += !frame.usebp; /* ensure stack is 16-byte aligned */ if (frame.usebp) { @@ -1370,6 +1369,8 @@ emitbin(Function *fn) fn->stksiz += 8; frame.size += 8; } + } else { + frame.size = npush*8; } frame.stksiz = fn->stksiz; |