In mode_b lowering move the assertion for mode_b below the check, whether the node...
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 28 Jan 2010 20:32:02 +0000 (20:32 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 28 Jan 2010 20:32:02 +0000 (20:32 +0000)
[r27007]

ir/lower/lower_mode_b.c

index bfd80b2..6e985b9 100644 (file)
@@ -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;