aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ir_stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir_stack.c')
-rw-r--r--src/ir_stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir_stack.c b/src/ir_stack.c
index ff49805..a9acc61 100644
--- a/src/ir_stack.c
+++ b/src/ir_stack.c
@@ -19,7 +19,7 @@ lowerstack(Function *fn)
fn->stksiz = alignup(fn->stksiz, 1 << alignlog2);
if (fn->stksiz > (1<<20)-1) error(NULL, "'%s' stack frame too big", fn->name);
*ins = mkinstr0(Onop,0);
- replcuses(mkref(RTMP, t), mkref(RSTACK, fn->stksiz));
+ replcuses(mkref(RTMP, t), mkref(RSTACK, fn->stksiz-siz));
}
}
} while ((blk = blk->lnext) != fn->entry);