Browse Source

FFI: Must sink XBAR together with XSTOREs.

Mike Pall 12 years ago
parent
commit
2c3e80d4fd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/lj_snap.c

+ 2 - 0
src/lj_snap.c

@@ -564,6 +564,8 @@ void lj_snap_replay(jit_State *J, GCtrace *T)
 		continue;
 		continue;
 	      }
 	      }
 	      tmp = emitir(irs->ot, tmp, val);
 	      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);
 	    }
 	    }
 	}
 	}
       }
       }