aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lj_asm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c
index 5ad14003..2e6b1745 100644
--- a/src/lj_asm.c
+++ b/src/lj_asm.c
@@ -1576,6 +1576,8 @@ static void asm_setup_regsp(ASMState *as)
1576 if (as->parent) { 1576 if (as->parent) {
1577 uint16_t *p; 1577 uint16_t *p;
1578 lastir = lj_snap_regspmap(as->parent, as->J->exitno, ir); 1578 lastir = lj_snap_regspmap(as->parent, as->J->exitno, ir);
1579 if (lastir - ir > LJ_MAX_JSLOTS)
1580 lj_trace_err(as->J, LJ_TRERR_NYICOAL);
1579 as->stopins = (IRRef)((lastir-1) - as->ir); 1581 as->stopins = (IRRef)((lastir-1) - as->ir);
1580 for (p = as->parentmap; ir < lastir; ir++) { 1582 for (p = as->parentmap; ir < lastir; ir++) {
1581 RegSP rs = ir->prev; 1583 RegSP rs = ir->prev;