aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-11 11:26:15 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-11 11:26:15 +0000
commitd70d2314d26f0dd0c6d3d0e88f4f85383747b4c2 (patch)
treed4b914c249321048edd93420dd4fb64703c3aea9 /vm_insnhelper.c
parent341b2bc4199f559af6f2678486feee3a9bb2bac5 (diff)
downloadruby-d70d2314d26f0dd0c6d3d0e88f4f85383747b4c2.tar.gz
transform_mjit_header.rb: add static to Init_*
as well, to make CI succeed with VM_CHECK_MODE > 1. vm_insnhelper.c: drop unnecessary MJIT_HEADER ifdef. This is intended to be ignored by having `static inline`. Removing that by macro would be helpful for minimizing compilation time, but the impact is not so big and having many MJIT_HEADER check would be bad for maintainability. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64682 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 84fd3aeb01..8d4b087874 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -3930,6 +3930,6 @@ vm_canary_is_found_dead(enum ruby_vminsn_type i, VALUE c)
rb_bug("dead canary found at %s: %s", insn, str);
}
-#elif !defined(MJIT_HEADER)
+#else
void Init_vm_stack_canary(void) { /* nothing to do */ }
#endif