diff options
| author | 2026-04-14 18:48:11 +0200 | |
|---|---|---|
| committer | 2026-04-14 18:48:11 +0200 | |
| commit | 268397ff8a226f2b46290ceb849f7cebbbce9817 (patch) | |
| tree | 4a1c68ee47936c97f12cdfeceb2e9e08cccafe1d /src | |
| parent | cbf1018b21ea2a060a3825fbdb1453800b5b7320 (diff) | |
backend: allow zero-size stack allocations
Hm.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ir_stack.c | 2 |
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); |