]> Nishi Git Mirror - gwion.git/commitdiff
:art: clean emit_exp_call1
authorfennecdjay <fennecdjay@gmail.com>
Sun, 11 Dec 2022 12:34:04 +0000 (13:34 +0100)
committerfennecdjay <fennecdjay@gmail.com>
Sun, 11 Dec 2022 12:34:04 +0000 (13:34 +0100)
src/emit/emit.c

index 56b0c8e1bd7642b8e5c510eb04e7b87697b6da4a..2d1f804a12b8ab00b12169d42720ee70255423f3 100644 (file)
@@ -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);