Clean up code

This commit is contained in:
Jude Melton-Houghton 2022-09-19 13:32:43 -04:00
parent b5783323ef
commit b4d853342c

View File

@ -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)])); GG_OFS(g.gcroot[GCROOT_BASEMT+itypemap(&ix->tabv)]));
goto nocheck; goto nocheck;
} }
ix->mt = mt ? mix.tab : TREF_NIL;
if (ix->mtspec && mt) { if (ix->mtspec && mt) {
TRef kmt = lj_ir_ktab(J, mt); TRef kmt = lj_ir_ktab(J, mt);
emitir(IRTG(IR_EQ, IRT_TAB), mix.tab, kmt); emitir(IRTG(IR_EQ, IRT_TAB), mix.tab, kmt);
mix.tab = kmt; mix.tab = kmt;
ix->mt = kmt; ix->mt = kmt;
} else { } 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)); emitir(IRTG(mt ? IR_NE : IR_EQ, IRT_TAB), mix.tab, lj_ir_knull(J, IRT_TAB));
} }
nocheck: nocheck: