From: Jérémie Astor Date: Wed, 1 Apr 2020 17:12:19 +0000 (+0200) Subject: :art: Clean emitter X-Git-Tag: nightly~1726^2 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=refs%2Fpull%2F168%2Fhead;p=gwion.git :art: Clean emitter --- diff --git a/src/emit/emit.c b/src/emit/emit.c index 06960591..4e2719fd 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1560,14 +1560,10 @@ ANN static m_bool emit_stmt_exp(const Emitter emit, const struct Stmt_Exp_* exp) ANN static m_bool emit_case_head(const Emitter emit, const Exp base, const Exp e, const Symbol op, const Vector v) { CHECK_BB(emit_exp(emit, base)) - const Exp next = e->next; -// e->next = NULL; - const m_bool ret = emit_exp_pop_next(emit, e); + CHECK_BB(emit_exp_pop_next(emit, e)) const m_int size = -exp_size(e); emit_exp_addref(emit, base, -exp_totalsize(base) - size); emit_exp_addref(emit, e, -size); -// e->next = next; - CHECK_BB(ret) const Exp_Binary bin = { .lhs=base, .rhs=e, .op=op }; struct ExpInfo_ info = { .nspc=e->info->nspc }; struct Exp_ ebin = { .d={.exp_binary=bin}, .info=&info };