mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Keep line number for KPRI to KNIL optimization.
This commit is contained in:
parent
f772bed34b
commit
4eb4b8ab84
@ -481,8 +481,8 @@ static void bcemit_nil(FuncState *fs, BCReg from, BCReg n)
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
fs->pc--; /* Drop KPRI. */
|
||||
break;
|
||||
*ip = BCINS_AD(BC_KNIL, from, from+n-1); /* Replace KPRI. */
|
||||
return;
|
||||
case BC_KNIL:
|
||||
pto = bc_d(*ip);
|
||||
if (pfrom <= from && from <= pto+1) { /* Can we connect both ranges? */
|
||||
|
Loading…
Reference in New Issue
Block a user