aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2013-01-31 12:36:23 +0100
committerMike Pall <mike>2013-01-31 12:36:23 +0100
commit4eb4b8ab8471233d63ae9644cdf304b847b3bbdc (patch)
treebfaf24efc61e0898e2be9dcc3003c726e9a89464 /src
parentf772bed34b39448e3a9ab8d07f6d5c0c26300e1b (diff)
downloadluajit-4eb4b8ab8471233d63ae9644cdf304b847b3bbdc.tar.gz
luajit-4eb4b8ab8471233d63ae9644cdf304b847b3bbdc.tar.bz2
luajit-4eb4b8ab8471233d63ae9644cdf304b847b3bbdc.zip
Keep line number for KPRI to KNIL optimization.
Diffstat (limited to 'src')
-rw-r--r--src/lj_parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_parse.c b/src/lj_parse.c
index 7268d176..de6672ba 100644
--- a/src/lj_parse.c
+++ b/src/lj_parse.c
@@ -481,8 +481,8 @@ static void bcemit_nil(FuncState *fs, BCReg from, BCReg n)
481 } else { 481 } else {
482 break; 482 break;
483 } 483 }
484 fs->pc--; /* Drop KPRI. */ 484 *ip = BCINS_AD(BC_KNIL, from, from+n-1); /* Replace KPRI. */
485 break; 485 return;
486 case BC_KNIL: 486 case BC_KNIL:
487 pto = bc_d(*ip); 487 pto = bc_d(*ip);
488 if (pfrom <= from && from <= pto+1) { /* Can we connect both ranges? */ 488 if (pfrom <= from && from <= pto+1) { /* Can we connect both ranges? */