Browse Source

Fix data-flow analysis for BC_UCLO.

Mike Pall 14 years ago
parent
commit
f50d8986d8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/lj_snap.c

+ 1 - 0
src/lj_snap.c

@@ -193,6 +193,7 @@ static BCReg snap_usedef(jit_State *J, uint8_t *udf,
       BCReg minslot = bc_a(ins);
       if (op >= BC_FORI && op <= BC_JFORL) minslot += FORL_EXT;
       else if (op >= BC_ITERL && op <= BC_JITERL) minslot += bc_b(pc[-1])-1;
+      else if (op == BC_UCLO) { pc += bc_j(ins); break; }
       for (s = minslot; s < maxslot; s++) DEF_SLOT(s);
       return minslot < maxslot ? minslot : maxslot;
       }