From: Christoph Mallon Date: Thu, 28 Jan 2010 20:32:02 +0000 (+0000) Subject: In mode_b lowering move the assertion for mode_b below the check, whether the node... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=a222aee7f74e8593e1184268ae3e8af5ffee9c9b;p=libfirm In mode_b lowering move the assertion for mode_b below the check, whether the node was replaced already. Some nodes are their own replacement and therefore do not have mode_b anymore after lowering. [r27007] --- diff --git a/ir/lower/lower_mode_b.c b/ir/lower/lower_mode_b.c index bfd80b2f6..6e985b94a 100644 --- a/ir/lower/lower_mode_b.c +++ b/ir/lower/lower_mode_b.c @@ -162,12 +162,12 @@ static ir_node *lower_node(ir_node *node) ir_mode *mode = config.lowered_mode; ir_node *res; - assert(get_irn_mode(node) == mode_b); - res = get_irn_link(node); if (res != NULL) return res; + assert(get_irn_mode(node) == mode_b); + switch (get_irn_opcode(node)) { case iro_Phi: { int i, arity;