summaryrefslogtreecommitdiff
path: root/src/lj_opt_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_opt_loop.c')
-rw-r--r--src/lj_opt_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_opt_loop.c b/src/lj_opt_loop.c
index 90ab1b6f..a743932d 100644
--- a/src/lj_opt_loop.c
+++ b/src/lj_opt_loop.c
@@ -336,7 +336,7 @@ static TValue *cploop_opt(lua_State *L, lua_CFunction dummy, void *ud)
336int lj_opt_loop(jit_State *J) 336int lj_opt_loop(jit_State *J)
337{ 337{
338 IRRef nins = J->cur.nins; 338 IRRef nins = J->cur.nins;
339 int errcode = lj_vm_cpcall(J->L, cploop_opt, NULL, J); 339 int errcode = lj_vm_cpcall(J->L, NULL, J, cploop_opt);
340 if (LJ_UNLIKELY(errcode)) { 340 if (LJ_UNLIKELY(errcode)) {
341 lua_State *L = J->L; 341 lua_State *L = J->L;
342 if (errcode == LUA_ERRRUN && tvisnum(L->top-1)) { /* Trace error? */ 342 if (errcode == LUA_ERRRUN && tvisnum(L->top-1)) { /* Trace error? */