diff --git a/src/lj_snap.c b/src/lj_snap.c index aea6102c..30ff9152 100644 --- a/src/lj_snap.c +++ b/src/lj_snap.c @@ -564,6 +564,8 @@ void lj_snap_replay(jit_State *J, GCtrace *T) continue; } tmp = emitir(irs->ot, tmp, val); + } else if (LJ_HASFFI && irs->o == IR_XBAR && ir->o == IR_CNEW) { + emitir(IRT(IR_XBAR, IRT_NIL), 0, 0); } } }