From 2c3e80d4fd3dd7a81e2691c9facff594cf44de0f Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Thu, 23 May 2013 22:15:51 +0200 Subject: [PATCH] FFI: Must sink XBAR together with XSTOREs. --- src/lj_snap.c | 2 ++ 1 file changed, 2 insertions(+) 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); } } } -- 2.11.4.GIT