aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pop <pop@cri.ensmp.fr>2006-02-10 21:46:03 +0100
committerSebastian Pop <spop@gcc.gnu.org>2006-02-10 20:46:03 +0000
commit9769818580bba2156b8b2aba8c02c29ad54c8ee1 (patch)
tree8a2ed733615fdd86c40ffb69fed06e265b5a2794
parent284cbef5cfa2f57a5c9a01da8d97cfce53d76121 (diff)
downloadgcc-9769818580bba2156b8b2aba8c02c29ad54c8ee1.zip
gcc-9769818580bba2156b8b2aba8c02c29ad54c8ee1.tar.gz
gcc-9769818580bba2156b8b2aba8c02c29ad54c8ee1.tar.bz2
tree-if-conv.c (combine_blocks): Free the result of get_loop_exit_edges.
* tree-if-conv.c (combine_blocks): Free the result of get_loop_exit_edges. From-SVN: r110850
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-if-conv.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 38922b6..f2e9a88 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-10 Sebastian Pop <pop@cri.ensmp.fr>
+
+ * tree-if-conv.c (combine_blocks): Free the result of
+ get_loop_exit_edges.
+
2006-02-10 Jeff Law <law@redhat.com>
* fold-const.c (tree_expr_nonzero_p): Fix thinko.
diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c
index 97deb28..557dffb 100644
--- a/gcc/tree-if-conv.c
+++ b/gcc/tree-if-conv.c
@@ -864,8 +864,10 @@ combine_blocks (struct loop *loop)
unsigned int orig_loop_num_nodes = loop->num_nodes;
unsigned int i;
unsigned int n_exits;
+ edge *exits;
- get_loop_exit_edges (loop, &n_exits);
+ exits = get_loop_exit_edges (loop, &n_exits);
+ free (exits);
/* Process phi nodes to prepare blocks for merge. */
process_phi_nodes (loop);