re PR tree-optimization/20773 (ICE: SEGV building jar file)

PR tree-optimization/20773
	* tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
	edge.

From-SVN: r102425
This commit is contained in:
Zdenek Dvorak 2005-07-27 15:23:33 +02:00 committed by Zdenek Dvorak
parent c11b02311a
commit 77fcaf4b70
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimization/20773
* tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
edge.
2005-07-27 Richard Guenther <rguenther@suse.de>
* tree-ssa-structalias.c (push_fields_onto_fieldstack):

View File

@ -197,7 +197,7 @@ copy_loop_headers (void)
/* Ensure that the header will have just the latch as a predecessor
inside the loop. */
if (!single_pred_p (exit->dest))
exit = single_succ_edge (loop_split_edge_with (exit, NULL));
exit = single_pred_edge (loop_split_edge_with (exit, NULL));
entry = loop_preheader_edge (loop);