ruby-changes:69109
From: Aaron <ko1@a...>
Date: Thu, 21 Oct 2021 08:20:51 +0900 (JST)
Subject: [ruby-changes:69109] 5336f6dada (master): make compiler happy
https://git.ruby-lang.org/ruby.git/commit/?id=5336f6dada From 5336f6dadab17a511592dc739da4232dc02c2a16 Mon Sep 17 00:00:00 2001 From: Aaron Patterson <tenderlove@r...> Date: Thu, 15 Jul 2021 12:40:34 -0700 Subject: make compiler happy --- yjit_iface.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yjit_iface.c b/yjit_iface.c index c6fdb7124e..6a04262399 100644 --- a/yjit_iface.c +++ b/yjit_iface.c @@ -465,6 +465,8 @@ yjit_block_assumptions_free(block_t *block) https://github.com/ruby/ruby/blob/trunk/yjit_iface.c#L465 } } +typedef VALUE (*yjit_func_t)(rb_execution_context_t *, rb_control_frame_t *); + bool rb_yjit_compile_iseq(const rb_iseq_t *iseq, rb_execution_context_t *ec) { @@ -472,14 +474,13 @@ rb_yjit_compile_iseq(const rb_iseq_t *iseq, rb_execution_context_t *ec) https://github.com/ruby/ruby/blob/trunk/yjit_iface.c#L474 #if OPT_DIRECT_THREADED_CODE || OPT_CALL_THREADED_CODE RB_VM_LOCK_ENTER(); // TODO: I think we need to stop all other ractors here - VALUE *encoded = (VALUE *)iseq->body->iseq_encoded; // Compile a block version starting at the first instruction uint8_t* code_ptr = gen_entry_point(iseq, 0, ec); if (code_ptr) { - iseq->body->jit_func = code_ptr; + iseq->body->jit_func = (yjit_func_t)code_ptr; } else { iseq->body->jit_func = 0; -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/