Skip to content

Commit

Permalink
Revert "assertions"
Browse files Browse the repository at this point in the history
This reverts commit 2509172.
  • Loading branch information
ligurio committed Jan 17, 2025
1 parent 847fc45 commit c87a151
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/lj_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
#include "lj_sysprof.h"
#endif

#include <assert.h>

/* -- Error handling ------------------------------------------------------ */

/* Synchronous abort with error message. */
Expand Down Expand Up @@ -628,16 +626,12 @@ static int trace_abort(jit_State *J)
for (frame = J->L->base-1, pc = J->pc; ; frame = frame_prev(frame)) {
if (isluafunc(frame_func(frame))) {
pos = proto_bcpos(funcproto(frame_func(frame)), pc);
assert(1 != 1);
break;
} else if (frame_prev(frame) <= bot) {
assert(2 != 2);
break;
} else if (frame_iscont(frame)) {
assert(3 != 3);
pc = frame_contpc(frame) - 1;
} else {
assert(4 != 4);
pc = frame_pc(frame) - 1;
}
}
Expand Down

0 comments on commit c87a151

Please sign in to comment.