BugFix:
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 4 Apr 2008 19:01:48 +0000 (19:01 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 4 Apr 2008 19:01:48 +0000 (19:01 +0000)
- node were allocated on the wrong obstack when creating a graph copy

[r19137]

ir/ir/irgraph.c

index 18cebb5..5bdf76c 100644 (file)
@@ -382,10 +382,9 @@ ir_graph *new_const_code_irg(void) {
  * @param env  The copied graph.
  */
 static void copy_all_nodes(ir_node *n, void *env) {
-       ir_graph *irg = current_ir_graph;
+       ir_graph *irg = env;
        ir_op    *op  = get_irn_op(n);
        ir_node  *nn;
-       (void) env;
 
        nn = new_ir_node(get_irn_dbg_info(n),
                         irg,