Skip to content

Commit

Permalink
resolve crash issue on LLVM; longjmp cleared some local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Jun 23, 2012
1 parent f045e64 commit c261e4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vm.c
Expand Up @@ -394,8 +394,8 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
mrb_value *regs = NULL;
mrb_code i;
int ai = mrb->arena_idx;
jmp_buf *prev_jmp = mrb->jmp;
jmp_buf c_jmp;
volatile jmp_buf *prev_jmp = NULL;

#ifdef DIRECT_THREADED
static void *optable[] = {
Expand Down Expand Up @@ -424,7 +424,6 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)


if (setjmp(c_jmp) == 0) {
prev_jmp = mrb->jmp;
mrb->jmp = &c_jmp;
}
else {
Expand Down

0 comments on commit c261e4f

Please sign in to comment.