From: Matthias Braun Date: Thu, 15 Sep 2011 15:19:35 +0000 (+0200) Subject: we must clear block+phi-node links X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=04b234fa1d3d417692f801bc966c0e049411fb76;p=libfirm we must clear block+phi-node links --- diff --git a/ir/common/irtools.c b/ir/common/irtools.c index 426ff8fe7..7ff399497 100644 --- a/ir/common/irtools.c +++ b/ir/common/irtools.c @@ -54,8 +54,11 @@ void firm_clear_node_and_phi_links(ir_node *n, void *env) void firm_clear_block_phis(ir_node *node, void *env) { (void) env; - if (is_Block(node)) + if (is_Block(node)) { set_Block_phis(node, NULL); + } else if (is_Phi(node)) { + set_Phi_next(node, NULL); + } } void firm_collect_block_phis(ir_node *node, void *env)