X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgwalk.c;h=c5e94a892fa77a8799bea3e4303b0eaa63faa93d;hb=e570f00fb465d212dde403160e97ab45d36d1d7e;hp=b46a93603a81fc6b950cd53238a9954b0ed8bebc;hpb=4e3fd9fecccfd54df03b342bd20e1ecd2d5c940f;p=libfirm diff --git a/ir/ir/irgwalk.c b/ir/ir/irgwalk.c index b46a93603..c5e94a892 100644 --- a/ir/ir/irgwalk.c +++ b/ir/ir/irgwalk.c @@ -234,7 +234,8 @@ cg_walk_2(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void * env) if (is_no_Block(node)) cg_walk_2(get_nodes_block(node), pre, post, env); for (i = get_irn_arity(node) - 1; i >= 0; --i) { - rem = switch_irg(node, i); + rem = switch_irg(node, i); /* @@@ AS: Is this wrong? We do have to + switch to the irg of the predecessor, don't we? */ cg_walk_2(get_irn_n(node, i), pre, post, env); current_ir_graph = rem; }