diff options
Diffstat (limited to 'src/lj_snap.c')
-rw-r--r-- | src/lj_snap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lj_snap.c b/src/lj_snap.c index de8068ac..bcd03038 100644 --- a/src/lj_snap.c +++ b/src/lj_snap.c | |||
@@ -97,6 +97,9 @@ static BCReg snapshot_framelinks(jit_State *J, SnapEntry *map) | |||
97 | cTValue *ftop = frame + funcproto(frame_func(frame))->framesize; | 97 | cTValue *ftop = frame + funcproto(frame_func(frame))->framesize; |
98 | MSize f = 0; | 98 | MSize f = 0; |
99 | map[f++] = SNAP_MKPC(J->pc); /* The current PC is always the first entry. */ | 99 | map[f++] = SNAP_MKPC(J->pc); /* The current PC is always the first entry. */ |
100 | lua_assert(!J->pt || | ||
101 | (J->pc >= proto_bc(J->pt) && | ||
102 | J->pc < proto_bc(J->pt) + J->pt->sizebc)); | ||
100 | while (frame > lim) { /* Backwards traversal of all frames above base. */ | 103 | while (frame > lim) { /* Backwards traversal of all frames above base. */ |
101 | if (frame_islua(frame)) { | 104 | if (frame_islua(frame)) { |
102 | map[f++] = SNAP_MKPC(frame_pc(frame)); | 105 | map[f++] = SNAP_MKPC(frame_pc(frame)); |