Fix string buffer method recording.

Reported and analyzed by vfprintf. #755
master
Mike Pall 2021-10-12 23:49:47 +02:00
parent 05f1984e1a
commit bfd076532c
1 changed files with 1 additions and 0 deletions

View File

@ -1123,6 +1123,7 @@ static TRef recff_sbufx_check(jit_State *J, RecordFFData *rd, int arg)
if (!tvisbuf(&rd->argv[arg])) lj_trace_err(J, LJ_TRERR_BADTYPE);
trtype = emitir(IRT(IR_FLOAD, IRT_U8), ud, IRFL_UDATA_UDTYPE);
emitir(IRTGI(IR_EQ), trtype, lj_ir_kint(J, UDTYPE_BUFFER));
J->needsnap = 1;
return ud;
}