summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-04 17:06:10 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-04 17:06:10 +0900
commit8b22fd27f181ea1902bbb584b41488e307121587 (patch)
tree45ec35e5a42a7a9c290f4cfd1b4a5113c3b08327 /vm.c
parent33ca2d386bee1cb4bc8e488cd9ad67df5f50f457 (diff)
Moved vm_empty_cc to local in vm.c [Bug #16934]
As it is referenced only from compile.c, except for MJIT, simply use the accessor function.
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index fb065f5..f2c45f3 100644
--- a/vm.c
+++ b/vm.c
@@ -386,7 +386,7 @@ rb_serial_t ruby_vm_global_method_state = 1;
rb_serial_t ruby_vm_global_constant_state = 1;
rb_serial_t ruby_vm_class_serial = 1;
-const struct rb_callcache *vm_empty_cc;
+static const struct rb_callcache *vm_empty_cc;
static void thread_free(void *ptr);