1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
Nobuyoshi Nakada 2020-06-04 17:06:10 +09:00
parent 33ca2d386b
commit 8b22fd27f1
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

2
vm.c
View file

@ -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);