summaryrefslogtreecommitdiff
path: root/backend_x86.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend_x86.c')
-rw-r--r--backend_x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend_x86.c b/backend_x86.c
index 56b0f8d..2892f83 100644
--- a/backend_x86.c
+++ b/backend_x86.c
@@ -173,6 +173,7 @@ code_ptr gen_mem_fun(cpu_options * opts, memmap_chunk const * memmap, uint32_t n
pop_r(code, opts->scratch2);
} else {
add_ir(code, sizeof(void*), RSP, SZ_D);
+ code->stack_off -= sizeof(void *);
}
} else {
push_r(code, opts->scratch2);