Commit 3ed961a0 by Zdenek Dvorak Committed by Zdenek Dvorak

* cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.

From-SVN: r72207
parent 1b288fec
2003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
2003-10-07 Jason Merrill <jason@redhat.com> 2003-10-07 Jason Merrill <jason@redhat.com>
PR c++/12519 PR c++/12519
......
...@@ -310,6 +310,9 @@ fix_irreducible_loops (basic_block from) ...@@ -310,6 +310,9 @@ fix_irreducible_loops (basic_block from)
} }
for (i = 0; i < n_edges; i++) for (i = 0; i < n_edges; i++)
{
e = edges[i];
if (e->flags & EDGE_IRREDUCIBLE_LOOP) if (e->flags & EDGE_IRREDUCIBLE_LOOP)
{ {
if (!flow_bb_inside_loop_p (from->loop_father, e->dest)) if (!flow_bb_inside_loop_p (from->loop_father, e->dest))
...@@ -322,6 +325,7 @@ fix_irreducible_loops (basic_block from) ...@@ -322,6 +325,7 @@ fix_irreducible_loops (basic_block from)
SET_BIT (on_stack, e->dest->index); SET_BIT (on_stack, e->dest->index);
stack[stack_top++] = e->dest; stack[stack_top++] = e->dest;
} }
}
free (edges); free (edges);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment