aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 0ba2ae4080..d97ac87a2a 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -407,7 +407,7 @@ vm_call_cfunc(rb_thread_t *th, rb_control_frame_t *reg_cfp,
rb_bug("cfp consistency error - send");
}
#ifdef __llvm__
-#define RB_LLVM_GUARD(v) RB_GC_GUARD(v)
+#define RB_LLVM_GUARD(v) (*RB_GC_GUARD_PTR((volatile VALUE *)&(v)))
RB_LLVM_GUARD(reg_cfp);
#endif