Generalize handling of stack checks indicated by highest exit + 1.

This commit is contained in:
Mike Pall
2011-10-24 16:02:37 +02:00
parent 84683405fb
commit a0d7827554
4 changed files with 22 additions and 12 deletions

View File

@@ -1418,7 +1418,6 @@ static void asm_stack_check(ASMState *as, BCReg topslot,
Reg pbase;
uint32_t k;
if (irp) {
exitno = as->T->nsnap; /* Highest exit + 1 indicates stack check. */
if (ra_hasreg(irp->r)) {
pbase = irp->r;
} else if (allow) {