Save the register value in a local variable for ease of debugging.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-06-15 14:52:58 +09:00
parent 988e2ced03
commit 52443c80e2
+3 -1
View File
@@ -1185,7 +1185,9 @@ RETRY_TRY_BLOCK:
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;
}