spill: use stronger assertion for registers in use at start of function

This commit is contained in:
Michael Forney 2021-03-11 19:24:28 -08:00 committed by Quentin Carbonneaux
parent 097dc86c45
commit e0b94a3d6a
3 changed files with 6 additions and 2 deletions

View file

@ -427,6 +427,7 @@ selpar(Fn *fn, Ins *i0, Ins *i1)
fa = argsclass(i0, i1, ac, Opar, &aret, &env);
} else
fa = argsclass(i0, i1, ac, Opar, 0, &env);
fn->reg = amd64_sysv_argregs(CALL(fa), 0);
for (i=i0, a=ac; i<i1; i++, a++) {
if (i->op != Oparc || a->inmem)