diff options
-rw-r--r-- | src/lj_ffrecord.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_ffrecord.c b/src/lj_ffrecord.c index 4127fe81..32d9e4c7 100644 --- a/src/lj_ffrecord.c +++ b/src/lj_ffrecord.c | |||
@@ -171,7 +171,7 @@ static void LJ_FASTCALL recff_setmetatable(jit_State *J, RecordFFData *rd) | |||
171 | mtref = tref_isnil(mt) ? lj_ir_knull(J, IRT_TAB) : mt; | 171 | mtref = tref_isnil(mt) ? lj_ir_knull(J, IRT_TAB) : mt; |
172 | emitir(IRT(IR_FSTORE, IRT_TAB), fref, mtref); | 172 | emitir(IRT(IR_FSTORE, IRT_TAB), fref, mtref); |
173 | if (!tref_isnil(mt)) | 173 | if (!tref_isnil(mt)) |
174 | emitir(IRT(IR_TBAR, IRT_TAB), tr, 0); | 174 | emitir(IRT(IR_TBAR, IRT_NIL), tr, 0); |
175 | J->base[0] = tr; | 175 | J->base[0] = tr; |
176 | J->needsnap = 1; | 176 | J->needsnap = 1; |
177 | } /* else: Interpreter will throw. */ | 177 | } /* else: Interpreter will throw. */ |