OSDN Git Service

* tree-if-conv.c (combine_blocks): Free the result of
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Feb 2006 20:46:03 +0000 (20:46 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Feb 2006 20:46:03 +0000 (20:46 +0000)
        get_loop_exit_edges.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110850 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-if-conv.c

index 38922b6..f2e9a88 100644 (file)
@@ -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.
index 97deb28..557dffb 100644 (file)
@@ -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);