aboutsummaryrefslogtreecommitdiff
path: root/src/lj_ffrecord.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_ffrecord.c')
-rw-r--r--src/lj_ffrecord.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_ffrecord.c b/src/lj_ffrecord.c
index 923824d9..b298d3f7 100644
--- a/src/lj_ffrecord.c
+++ b/src/lj_ffrecord.c
@@ -1005,6 +1005,7 @@ static void recff_format(jit_State *J, RecordFFData *rd, TRef hdr, int sbufx)
1005 GCstr *fmt = argv2str(J, &rd->argv[arg]); 1005 GCstr *fmt = argv2str(J, &rd->argv[arg]);
1006 FormatState fs; 1006 FormatState fs;
1007 SFormat sf; 1007 SFormat sf;
1008 int nfmt = 0;
1008 /* Specialize to the format string. */ 1009 /* Specialize to the format string. */
1009 emitir(IRTG(IR_EQ, IRT_STR), trfmt, lj_ir_kstr(J, fmt)); 1010 emitir(IRTG(IR_EQ, IRT_STR), trfmt, lj_ir_kstr(J, fmt));
1010 lj_strfmt_init(&fs, strdata(fmt), fmt->len); 1011 lj_strfmt_init(&fs, strdata(fmt), fmt->len);
@@ -1082,6 +1083,7 @@ static void recff_format(jit_State *J, RecordFFData *rd, TRef hdr, int sbufx)
1082 recff_nyiu(J, rd); 1083 recff_nyiu(J, rd);
1083 return; 1084 return;
1084 } 1085 }
1086 if (++nfmt > 100) lj_trace_err(J, LJ_TRERR_TRACEOV);
1085 } 1087 }
1086 if (sbufx) { 1088 if (sbufx) {
1087 emitir(IRT(IR_USE, IRT_NIL), tr, 0); 1089 emitir(IRT(IR_USE, IRT_NIL), tr, 0);