Merge branch 'master' into v2.1

This commit is contained in:
Mike Pall
2025-01-13 16:22:22 +01:00
2 changed files with 5 additions and 1 deletions

View File

@@ -2007,7 +2007,7 @@ static void rec_varg(jit_State *J, BCReg dst, ptrdiff_t nresults)
J->maxslot = dst + (BCReg)nresults;
}
} else if (select_detect(J)) { /* y = select(x, ...) */
TRef tridx = J->base[dst-1];
TRef tridx = getslot(J, dst-1);
TRef tr = TREF_NIL;
ptrdiff_t idx = lj_ffrecord_select_mode(J, tridx, &J->L->base[dst-1]);
if (idx < 0) goto nyivarg;