aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-13 01:21:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-13 01:21:29 +0000
commit2a325fa8009eaacdbae8666a271e57c44385478a (patch)
tree542cda2066a38bd3a0817d68434c60c59c3842ce /vm_insnhelper.c
parent70c9aa09c21bb9eab8f46420ec5e3d9d6a3e0261 (diff)
downloadruby-2a325fa8009eaacdbae8666a271e57c44385478a.tar.gz
vm_insnhelper.c: fix ALWAYS_INLINE usage
* vm_insnhelper.c (vm_getivar): ALWAYS_INLINE macro needs an argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 7ee39c736b..7169a0f7c1 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -861,7 +861,8 @@ vm_search_const_defined_class(const VALUE cbase, ID id)
#define USE_IC_FOR_IVAR 1
#endif
-ALWAYS_INLINE() inline VALUE
+ALWAYS_INLINE(static VALUE vm_getivar(VALUE, ID, IC, struct rb_call_cache *, int));
+static inline VALUE
vm_getivar(VALUE obj, ID id, IC ic, struct rb_call_cache *cc, int is_attr)
{
#if USE_IC_FOR_IVAR