From 1f8ffc4e97a70c33a1345c09e8f55d5b3b4165ca Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 29 Jun 2022 17:03:32 +0200 Subject: [PATCH] :art: change emit call --- src/emit/emit.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index ec6ae806..abc2f703 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1616,7 +1616,12 @@ ANN m_bool emit_exp_call1(const Emitter emit, const Func f, else if (unlikely(!f->code && emit->env->func != f)) { if (tmpl) CHECK_BB(emit_template_code(emit, f)); else CHECK_BB(emit_ensure_func(emit, f)); - } else push_func_code(emit, f); + } else { + if(!f->value_ref->from->owner_class || + GET_FLAG(f->value_ref->from->owner_class, final) || + GET_FLAG(f->value_ref->from->owner_class, static)) + push_func_code(emit, f); + } call_finish(emit, f, is_static); emit->status = status; return GW_OK; -- 2.43.0