mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
parent
32a683d226
commit
9bb6b35f7f
@ -171,7 +171,7 @@ static void LJ_FASTCALL recff_setmetatable(jit_State *J, RecordFFData *rd)
|
|||||||
mtref = tref_isnil(mt) ? lj_ir_knull(J, IRT_TAB) : mt;
|
mtref = tref_isnil(mt) ? lj_ir_knull(J, IRT_TAB) : mt;
|
||||||
emitir(IRT(IR_FSTORE, IRT_TAB), fref, mtref);
|
emitir(IRT(IR_FSTORE, IRT_TAB), fref, mtref);
|
||||||
if (!tref_isnil(mt))
|
if (!tref_isnil(mt))
|
||||||
emitir(IRT(IR_TBAR, IRT_TAB), tr, 0);
|
emitir(IRT(IR_TBAR, IRT_NIL), tr, 0);
|
||||||
J->base[0] = tr;
|
J->base[0] = tr;
|
||||||
J->needsnap = 1;
|
J->needsnap = 1;
|
||||||
} /* else: Interpreter will throw. */
|
} /* else: Interpreter will throw. */
|
||||||
|
Loading…
Reference in New Issue
Block a user