Ensure full init of IR_NOP instructions.

This commit is contained in:
Mike Pall
2020-10-12 15:40:28 +02:00
parent e8ec6fe996
commit de6b1a11dd
4 changed files with 15 additions and 25 deletions

View File

@@ -1833,7 +1833,7 @@ void lj_asm_trace(jit_State *J, GCtrace *T)
/* Ensure an initialized instruction beyond the last one for HIOP checks. */
J->cur.nins = lj_ir_nextins(J);
J->cur.ir[J->cur.nins].o = IR_NOP;
lj_ir_nop(&J->cur.ir[J->cur.nins]);
/* Setup initial state. Copy some fields to reduce indirections. */
as->J = J;