From: fennecdjay Date: Mon, 25 Nov 2019 00:33:55 +0000 (+0100) Subject: :art: Reset memoize on each ast X-Git-Tag: nightly~2082 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=21c42f8b37a679f6ea03f09a426f539fdb663441;p=gwion.git :art: Reset memoize on each ast --- diff --git a/src/emit/emit.c b/src/emit/emit.c index 8b52a7c3..c253eab8 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -2021,6 +2021,7 @@ ANN static inline m_bool emit_ast_inner(const Emitter emit, Ast ast) { ANN m_bool emit_ast(const Env env, Ast ast) { const Emitter emit = env->gwion->emit; + emit->info->memoize = 0; emit->code = new_code(emit, emit->env->name); emit_push_scope(emit); const m_bool ret = emit_ast_inner(emit, ast);