From ff701a3fdb7a1925788af4ca3ef184cdd372e5b5 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 14 Sep 2006 19:11:11 +0000 Subject: [PATCH] BugFix: - post-dominance did not restore current_ir_graph, but set local var wrong [r8253] --- ir/ana/irdom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/ana/irdom.c b/ir/ana/irdom.c index 360e98ceb..5bc615fef 100644 --- a/ir/ana/irdom.c +++ b/ir/ana/irdom.c @@ -766,7 +766,6 @@ void compute_doms(ir_graph *irg) { /* clean up */ free(tdi_list); - current_ir_graph = rem; /* Do a walk over the tree and assign the tree pre orders. */ { @@ -774,6 +773,7 @@ void compute_doms(ir_graph *irg) { dom_tree_walk_irg(irg, assign_tree_dom_pre_order, assign_tree_dom_pre_order_max, &tree_pre_order); } + current_ir_graph = rem; } void assure_doms(ir_graph *irg) { @@ -877,7 +877,6 @@ void compute_postdoms(ir_graph *irg) { /* clean up */ free(tdi_list); - irg = rem; /* Do a walk over the tree and assign the tree pre orders. */ { @@ -885,6 +884,7 @@ void compute_postdoms(ir_graph *irg) { postdom_tree_walk_irg(irg, assign_tree_postdom_pre_order, assign_tree_postdom_pre_order_max, &tree_pre_order); } + current_ir_graph = rem; } void assure_postdoms(ir_graph *irg) { -- 2.20.1