From: fennecdjay Date: Fri, 28 Oct 2022 08:40:46 +0000 (+0200) Subject: :art: small emi_exp_call simplification X-Git-Tag: nightly~207^2~100 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=7e25e2433f43404430db23600fa8133c54c72266;p=gwion.git :art: small emi_exp_call simplification --- diff --git a/src/emit/emit.c b/src/emit/emit.c index 57f904ac..61f3619d 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1340,8 +1340,7 @@ ANN static m_bool _emit_exp_call(const Emitter emit, const Exp_Call *call) { const Func f = t->info->func; if(unlikely(is_new_struct(f, exp_self(call)->type))) emit_new_struct(emit, call); - else if (strstr(emit->code->name, "ork~") || // skip when recursing - (f != emit->env->func || (f && f->value_ref->from->owner_class))) + else if (f != emit->env->func || (f && f->value_ref->from->owner_class)) CHECK_BB(prepare_call(emit, call)); else CHECK_BB(emit_func_args(emit, call)); CHECK_BB(emit_exp_call1(emit, f, is_static_call(emit->gwion, call->func)));