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 e77e114..011337f 100644
--- a/src/ir_stack.c
+++ b/src/ir_stack.c
@@ -13,7 +13,7 @@ lowerstack(Function *fn)
Instr *ins = &instrtab[t];
if (oisalloca(ins->op)) {
uint alignlog2 = ins->op - Oalloca1;
- assert(ins->l.i > 0);
+ assert(ins->l.i >= 0);
uint siz = ins->l.i << alignlog2;
fn->stksiz += siz;
fn->stksiz = alignup(fn->stksiz, 1 << alignlog2);