summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-06-15 14:52:58 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-06-15 14:52:58 +0900
commit52443c80e23764956c253a43efaf1762262336a5 (patch)
tree718d17d71981f93a2b3da8d224ec9c15d8f27a77 /src
parent988e2ced0380e6783db854173d004d5ac64548ac (diff)
downloadmruby-52443c80e23764956c253a43efaf1762262336a5.tar.gz
mruby-52443c80e23764956c253a43efaf1762262336a5.zip
Save the register value in a local variable for ease of debugging.
Diffstat (limited to 'src')
-rw-r--r--src/vm.c4
1 files changed, 3 insertions, 1 deletions
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;
}