aboutsummaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 67ca4393a5..2f38eeef2e 100644
--- a/vm.c
+++ b/vm.c
@@ -1216,6 +1216,9 @@ vm_exec(rb_thread_t *th)
vm_loop_start:
result = vm_exec_core(th, initial);
if ((state = th->state) != 0) {
+#ifdef __llvm__
+ rb_thread_t t = *th;
+#endif
err = result;
th->state = 0;
goto exception_handler;