added missing include
[libfirm] / ir / common / irtools.c
index 540452d..b1ea3d6 100644 (file)
@@ -61,9 +61,7 @@ copy_irn_to_irg(ir_node *n, ir_graph *irg)
   else if (op == op_Proj) {
     old_irg = get_irn_irg(n);
 
-    if (n == get_irg_cstore(old_irg))
-      nn = get_irg_cstore(irg);
-    else if (n == get_irg_frame(old_irg))
+    if (n == get_irg_frame(old_irg))
       nn = get_irg_frame(irg);
     else if (n == get_irg_globals(old_irg))
       nn = get_irg_globals(irg);
@@ -84,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