summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-21 17:53:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-21 17:53:23 +0000
commit64b7b548e0f5d143a6c18c1d295ed274fac48761 (patch)
treed34eecaa85b47920e98cb1f844d6009d84c3f3f8 /vm_insnhelper.c
parent7f4c92c4782751b4411522f7d38fb4aa0c59a345 (diff)
* vm_insnhelper.c (vm_call_cfunc): suppress a warning. note that
`volatile type *var' doesn't make var itself volatile. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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