aboutsummaryrefslogtreecommitdiff
path: root/src/lj_ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_ir.h')
-rw-r--r--src/lj_ir.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lj_ir.h b/src/lj_ir.h
index b9da1fc5..0340f3c2 100644
--- a/src/lj_ir.h
+++ b/src/lj_ir.h
@@ -587,4 +587,12 @@ static LJ_AINLINE int ir_sideeff(IRIns *ir)
587 587
588LJ_STATIC_ASSERT((int)IRT_GUARD == (int)IRM_W); 588LJ_STATIC_ASSERT((int)IRT_GUARD == (int)IRM_W);
589 589
590/* Replace IR instruction with NOP. */
591static LJ_AINLINE void lj_ir_nop(IRIns *ir)
592{
593 ir->ot = IRT(IR_NOP, IRT_NIL);
594 ir->op1 = ir->op2 = 0;
595 ir->prev = 0;
596}
597
590#endif 598#endif