From 7e25e2433f43404430db23600fa8133c54c72266 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 28 Oct 2022 10:40:46 +0200 Subject: [PATCH] :art: small emi_exp_call simplification --- src/emit/emit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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))); -- 2.43.0