Skip to content
Permalink
Browse files
Save the register value in a local variable for ease of debugging.
  • Loading branch information
matz committed Jun 15, 2017
1 parent 988e2ce commit 52443c80e23764956c253a43efaf1762262336a5
Showing 1 changed file with 3 additions and 1 deletion.
@@ -1185,7 +1185,9 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)

CASE(OP_RAISE) {
/* A raise(R(A)) */
mrb_exc_set(mrb, regs[GETARG_A(i)]);
int a = GETARG_A(i);

mrb_exc_set(mrb, regs[a]);
goto L_RAISE;
}

0 comments on commit 52443c8

Please sign in to comment.