cleanup space generation logic and make it more robust for union constructs
[libfirm] / ir / ir / irgmod.c
index 7616f60..b4a4b50 100644 (file)
@@ -133,7 +133,7 @@ static void collect_phiprojs_walker(ir_node *n, void *env) {
 
        if (is_Phi(n)) {
                ir_node *block = get_nodes_block(n);
-               add_Block_phi(n, n);
+               add_Block_phi(block, n);
        } else if (is_Proj(n)) {
                pred = n;
                do {