aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
author lemon<lsof@mailbox.org>2025-12-09 08:32:03 +0100
committer lemon<lsof@mailbox.org>2025-12-09 08:32:03 +0100
commit54dba7cc860808c8d2417a2abdaa8aa8412e8b49 (patch)
treeb02c17dc36f5a4125afe26fab171eafc1aa971d9
parent7cdf81705a1f21bd628a3ab28ca3584d2dc081fa (diff)
rega: change assert for spilled callee. it's ok if nspill==1
-rw-r--r--ir/regalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/regalloc.c b/ir/regalloc.c
index 65a37e1..520870e 100644
--- a/ir/regalloc.c
+++ b/ir/regalloc.c
@@ -1064,7 +1064,7 @@ devirt(struct rega *ra, struct block *blk)
}
}
}
- if (nspill > 0) assert(ins->op != Ocall);
+ if (nspill > 1) assert(ins->op != Ocall);
if (naddr) {
union ref *r = ins->l.t == RADDR ? &ins->l : &ins->r;
*r = mkaddr(newaddr);