summaryrefslogtreecommitdiff
path: root/src/lj_ir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_ir.c')
-rw-r--r--src/lj_ir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_ir.c b/src/lj_ir.c
index 2ff54821..1efb12f0 100644
--- a/src/lj_ir.c
+++ b/src/lj_ir.c
@@ -252,6 +252,7 @@ TRef lj_ir_kgc(jit_State *J, GCobj *o, IRType t)
252{ 252{
253 IRIns *ir, *cir = J->cur.ir; 253 IRIns *ir, *cir = J->cur.ir;
254 IRRef ref; 254 IRRef ref;
255 lua_assert(!isdead(J2G(J), o));
255 for (ref = J->chain[IR_KGC]; ref; ref = cir[ref].prev) 256 for (ref = J->chain[IR_KGC]; ref; ref = cir[ref].prev)
256 if (ir_kgc(&cir[ref]) == o) 257 if (ir_kgc(&cir[ref]) == o)
257 goto found; 258 goto found;