Skip to content

Commit

Permalink
Always use IRT_NIL for IR_TBAR.
Browse files Browse the repository at this point in the history
Thanks to Peter Cawley. #1258
  • Loading branch information
Mike Pall committed Aug 24, 2024
1 parent 32a683d commit 9bb6b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lj_ffrecord.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
emitir(IRT(IR_FSTORE, IRT_TAB), fref, mtref);
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->needsnap = 1;
} /* else: Interpreter will throw. */
Expand Down

0 comments on commit 9bb6b35

Please sign in to comment.