Permalink
Browse files

resolve crash issue on LLVM; longjmp cleared some local variable

  • Loading branch information...
1 parent f045e64 commit c261e4f360106eeb5d9193c30410818884e19ccc @matz matz committed Jun 23, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/vm.c
View
@@ -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[] = {
@@ -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 {

0 comments on commit c261e4f

Please sign in to comment.