summaryrefslogtreecommitdiff
path: root/src/lj_record.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_record.c')
-rw-r--r--src/lj_record.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lj_record.c b/src/lj_record.c
index 49e3d3b5..2709ea01 100644
--- a/src/lj_record.c
+++ b/src/lj_record.c
@@ -1671,14 +1671,8 @@ static int rec_call(jit_State *J, BCReg func, ptrdiff_t cres, ptrdiff_t nargs)
1671 GCproto *pt = funcproto(rd.fn); 1671 GCproto *pt = funcproto(rd.fn);
1672 if ((pt->flags & PROTO_NO_JIT)) 1672 if ((pt->flags & PROTO_NO_JIT))
1673 lj_trace_err(J, LJ_TRERR_CJITOFF); 1673 lj_trace_err(J, LJ_TRERR_CJITOFF);
1674 if ((pt->flags & PROTO_IS_VARARG)) { 1674 if ((pt->flags & PROTO_IS_VARARG))
1675 if (rd.fn->l.gate != lj_gate_lv)
1676 lj_trace_err(J, LJ_TRERR_NYILNKF);
1677 lj_trace_err(J, LJ_TRERR_NYIVF); 1675 lj_trace_err(J, LJ_TRERR_NYIVF);
1678 } else {
1679 if (rd.fn->l.gate != lj_gate_lf)
1680 lj_trace_err(J, LJ_TRERR_NYILNKF);
1681 }
1682 if (cres == CALLRES_TAILCALL) { 1676 if (cres == CALLRES_TAILCALL) {
1683 ptrdiff_t i; 1677 ptrdiff_t i;
1684 /* Tailcalls can form a loop, so count towards the loop unroll limit. */ 1678 /* Tailcalls can form a loop, so count towards the loop unroll limit. */