- fix fehler109.c:
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 18 Feb 2008 14:51:14 +0000 (14:51 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 18 Feb 2008 14:51:14 +0000 (14:51 +0000)
do not exchange the Proj from Cmp, if it has more than one user this will fail ...

[r17776]

ir/lower/lower_dw.c

index e7b2f1c..a0cd50f 100644 (file)
@@ -1259,7 +1259,7 @@ static void lower_Cond(ir_node *node, ir_mode *mode, lower_env_t *env) {
                                ir_node *cmp  = new_rd_Cmp(dbg, irg, block, or, new_Const_long(mode, 0));
 
                                ir_node *proj = new_r_Proj(irg, block, cmp, mode_b, pnc);
-                               exchange(sel, proj);
+                               set_Cond_selector(node, proj);
                                return;
                        }
                }