aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lj_record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_record.c b/src/lj_record.c
index cded81e0..a32d19f0 100644
--- a/src/lj_record.c
+++ b/src/lj_record.c
@@ -401,7 +401,7 @@ static void rec_loop_jit(jit_State *J, TraceNo lnk, LoopEvent ev)
401 lj_trace_err(J, LJ_TRERR_LINNER); 401 lj_trace_err(J, LJ_TRERR_LINNER);
402 } else if (ev != LOOPEV_LEAVE) { /* Side trace enters a compiled loop. */ 402 } else if (ev != LOOPEV_LEAVE) { /* Side trace enters a compiled loop. */
403 J->instunroll = 0; /* Cannot continue across a compiled loop op. */ 403 J->instunroll = 0; /* Cannot continue across a compiled loop op. */
404 if (J->pc == J->startpc && J->framedepth == 0) 404 if (J->pc == J->startpc && J->framedepth == 0 && !J->chain[IR_RETF])
405 lnk = J->curtrace; /* Can form an extra loop. */ 405 lnk = J->curtrace; /* Can form an extra loop. */
406 rec_stop(J, lnk); /* Link to the loop. */ 406 rec_stop(J, lnk); /* Link to the loop. */
407 } /* Side trace continues across a loop that's left or not entered. */ 407 } /* Side trace continues across a loop that's left or not entered. */