summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Serrer <philipp@serrer.de>2017-11-28 19:24:21 +0100
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2017-12-13 17:59:21 +0100
commit76a5d47c526e37fbe9aa856c1eb8c61e7e22919c (patch)
tree8d464d95eac3da1002094d027ab166231ce41038
parent05e3419ad15dd55e62ddcc0ac1dcad4e6830dba1 (diff)
Recompute out edges after normalization to single Return node
-rw-r--r--ir/lower/lower_calls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir/lower/lower_calls.c b/ir/lower/lower_calls.c
index 72c3ab8..3537b10 100644
--- a/ir/lower/lower_calls.c
+++ b/ir/lower/lower_calls.c
@@ -753,9 +753,6 @@ static void fix_int_return(cl_entry const *const entry,
ir_node *const block = get_nodes_block(call);
ir_graph *const irg = get_irn_irg(base_addr);
- /* we need edges activated here */
- assure_irg_properties(irg, IR_GRAPH_PROPERTY_CONSISTENT_OUT_EDGES);
-
/* if the Call throws an exception, then we cannot add instruction
* immediately behind it as the call ends the basic block */
assert(!ir_throws_exception(call));
@@ -1337,6 +1334,9 @@ static void transform_irg(lowering_env_t const *const env, ir_graph *const irg)
break;
}
}
+
+ /* We need consistent out edges, again. */
+ assure_irg_properties(irg, IR_GRAPH_PROPERTY_CONSISTENT_OUT_EDGES);
}
/* fix parameter sels */