From b4d853342cf9d2a3752d725c8b1d8480de9053b0 Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Mon, 19 Sep 2022 13:32:43 -0400 Subject: [PATCH] Clean up code --- src/lj_record.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_record.c b/src/lj_record.c index f6c4f8a6..fbaafead 100644 --- a/src/lj_record.c +++ b/src/lj_record.c @@ -1104,13 +1104,13 @@ int lj_record_mm_lookup(jit_State *J, RecordIndex *ix, MMS mm) GG_OFS(g.gcroot[GCROOT_BASEMT+itypemap(&ix->tabv)])); goto nocheck; } - ix->mt = mt ? mix.tab : TREF_NIL; if (ix->mtspec && mt) { TRef kmt = lj_ir_ktab(J, mt); emitir(IRTG(IR_EQ, IRT_TAB), mix.tab, kmt); mix.tab = kmt; ix->mt = kmt; } else { + ix->mt = mt ? mix.tab : TREF_NIL; emitir(IRTG(mt ? IR_NE : IR_EQ, IRT_TAB), mix.tab, lj_ir_knull(J, IRT_TAB)); } nocheck: