copy_irn_to_irg was buggy. It handed the whole in array of a node, including
authorAdam Szalkowski <adam@ipd.info.uni-karlsruhe.de>
Sat, 29 Apr 2006 18:59:00 +0000 (18:59 +0000)
committerAdam Szalkowski <adam@ipd.info.uni-karlsruhe.de>
Sat, 29 Apr 2006 18:59:00 +0000 (18:59 +0000)
the block, to new_ir_node. As a result after copying position 0 of the
new node contained the block.

[r7672]

ir/common/irtools.c

index da8de90..b1ea3d6 100644 (file)
@@ -82,7 +82,7 @@ copy_irn_to_irg(ir_node *n, ir_graph *irg)
          op,
          get_irn_mode(n),
          get_irn_arity(n),
-         get_irn_in(n));
+         get_irn_in(n) + 1);
 
 
   /* Copy the attributes.  These might point to additional data.  If this