From 52443c80e23764956c253a43efaf1762262336a5 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" <matz@ruby-lang.org> Date: Thu, 15 Jun 2017 14:52:58 +0900 Subject: [PATCH] Save the register value in a local variable for ease of debugging. --- src/vm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vm.c b/src/vm.c index 096e155dd..419b93be1 100644 --- a/src/vm.c +++ b/src/vm.c @@ -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; } -- 2.26.2