mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Fix cts->L for cdata unsinking in snapshot restore.
This commit is contained in:
parent
ef59e54820
commit
45c067dddd
@ -708,7 +708,7 @@ static void snap_unsink(jit_State *J, GCtrace *T, ExitState *ex,
|
||||
ir->o == IR_CNEW || ir->o == IR_CNEWI);
|
||||
#if LJ_HASFFI
|
||||
if (ir->o == IR_CNEW || ir->o == IR_CNEWI) {
|
||||
CTState *cts = ctype_ctsG(J2G(J));
|
||||
CTState *cts = ctype_cts(J->L);
|
||||
CTypeID id = (CTypeID)T->ir[ir->op1].i;
|
||||
CTSize sz = lj_ctype_size(cts, id);
|
||||
GCcdata *cd = lj_cdata_new(cts, id, sz);
|
||||
|
Loading…
Reference in New Issue
Block a user