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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_ir.h b/src/lj_ir.h
index 532d7a9e..ae533939 100644
--- a/src/lj_ir.h
+++ b/src/lj_ir.h
@@ -591,7 +591,6 @@ typedef union IRIns {
591 check_exp((ir)->o == IR_KNUM || (ir)->o == IR_KINT64, mref((ir)->ptr,cTValue)) 591 check_exp((ir)->o == IR_KNUM || (ir)->o == IR_KINT64, mref((ir)->ptr,cTValue))
592#define ir_kptr(ir) \ 592#define ir_kptr(ir) \
593 check_exp((ir)->o == IR_KPTR || (ir)->o == IR_KKPTR, mref((ir)->ptr, void)) 593 check_exp((ir)->o == IR_KPTR || (ir)->o == IR_KKPTR, mref((ir)->ptr, void))
594LJ_STATIC_ASSERT((int)IRT_GUARD == (int)IRM_W);
595 594
596/* A store or any other op with a non-weak guard has a side-effect. */ 595/* A store or any other op with a non-weak guard has a side-effect. */
597static LJ_AINLINE int ir_sideeff(IRIns *ir) 596static LJ_AINLINE int ir_sideeff(IRIns *ir)
@@ -599,4 +598,6 @@ static LJ_AINLINE int ir_sideeff(IRIns *ir)
599 return (((ir->t.irt | ~IRT_GUARD) & lj_ir_mode[ir->o]) >= IRM_S); 598 return (((ir->t.irt | ~IRT_GUARD) & lj_ir_mode[ir->o]) >= IRM_S);
600} 599}
601 600
601LJ_STATIC_ASSERT((int)IRT_GUARD == (int)IRM_W);
602
602#endif 603#endif