aboutsummaryrefslogtreecommitdiff
path: root/gcc/graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/graph.c')
-rw-r--r--gcc/graph.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/graph.c b/gcc/graph.c
index 8fa2e4f..cd232db 100644
--- a/gcc/graph.c
+++ b/gcc/graph.c
@@ -308,6 +308,7 @@ print_rtl_graph_with_bb (const char *base, rtx rtx_first)
if ((i = end[INSN_UID (tmp_rtx)]) >= 0)
{
edge e;
+ edge_iterator ei;
bb = BASIC_BLOCK (i);
@@ -316,7 +317,7 @@ print_rtl_graph_with_bb (const char *base, rtx rtx_first)
/* Now specify the edges to all the successors of this
basic block. */
- for (e = bb->succ; e ; e = e->succ_next)
+ FOR_EACH_EDGE (e, ei, bb->succs)
{
if (e->dest != EXIT_BLOCK_PTR)
{