Don't copy SNAP_NORESTORE mark into loops and suppress restore in exit.

This commit is contained in:
Mike Pall
2010-04-08 01:28:51 +02:00
parent 23189fa40d
commit db756430ee
2 changed files with 2 additions and 2 deletions

View File

@@ -267,7 +267,7 @@ const BCIns *lj_snap_restore(jit_State *J, void *exptr)
}
}
}
} else {
} else if (!(sn & SNAP_NORESTORE)) {
IRType1 t = ir->t;
RegSP rs = ir->prev;
lua_assert(!(sn & (SNAP_CONT|SNAP_FRAME)));