From ccd8dd6ad395bbd9f5290e0fcb7929e5e5d36767 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sun, 27 Nov 2022 23:40:41 -0800 Subject: MJIT: Make it parsable by Solargraph --- mjit_compiler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mjit_compiler.c') diff --git a/mjit_compiler.c b/mjit_compiler.c index be3942a7b0..4b41e114bf 100644 --- a/mjit_compiler.c +++ b/mjit_compiler.c @@ -122,8 +122,8 @@ mjit_compile(FILE *f, const rb_iseq_t *iseq, const char *funcname, int id) bool original_call_p = mjit_call_p; mjit_call_p = false; // Avoid impacting JIT metrics by itself - extern VALUE rb_mMJITCompiler; - VALUE src = rb_funcall(rb_mMJITCompiler, rb_intern("compile"), 3, + extern VALUE rb_cMJITCompiler; + VALUE src = rb_funcall(rb_cMJITCompiler, rb_intern("compile"), 3, rb_ptr("rb_iseq_t", iseq), rb_str_new_cstr(funcname), INT2NUM(id)); if (!NIL_P(src)) { fprintf(f, "%s", RSTRING_PTR(src)); -- cgit v1.2.3