From 51c086dea830b8cb422fd2fc2dec2551317288db Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 1 Apr 2020 19:12:19 +0200 Subject: [PATCH] :art: Clean emitter --- src/emit/emit.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 }; -- 2.43.0