From: fennecdjay Date: Sun, 11 Dec 2022 12:34:04 +0000 (+0100) Subject: :art: clean emit_exp_call1 X-Git-Tag: nightly~207^2~50 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=1cf0b06040ed443ab85fe4b5d56ebb33c5c6c544;p=gwion.git :art: clean emit_exp_call1 --- diff --git a/src/emit/emit.c b/src/emit/emit.c index 56b0c8e1..2d1f804a 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1618,10 +1618,9 @@ ANN m_bool emit_exp_call1(const Emitter emit, const Func f, const bool is_static) { const EmitterStatus status = emit->status; emit->status = (EmitterStatus){}; - const int tmpl = fflag(f, fflag_tmpl); if(unlikely(fflag(f, fflag_fptr))) emit_fptr_call(emit, f); else if (unlikely(!f->code && emit->env->func != f)) { - if (tmpl) CHECK_BB(emit_template_code(emit, f)); + if (fflag(f, fflag_tmpl)) CHECK_BB(emit_template_code(emit, f)); else CHECK_BB(emit_ensure_func(emit, f)); } else if(is_static) push_func_code(emit, f);