cfgloop.c (flow_loop_entry_edges_find): Fix typo.
authorGraham Stott <grahams@redhat.com>
Mon, 31 Dec 2001 03:54:04 +0000 (03:54 +0000)
committerGraham Stott <grahams@gcc.gnu.org>
Mon, 31 Dec 2001 03:54:04 +0000 (03:54 +0000)
       * cfgloop.c (flow_loop_entry_edges_find): Fix typo.
        (flow_loop_exit_edges_find): Likewise.

From-SVN: r48407

gcc/ChangeLog
gcc/cfgloop.c

index 7b8107526faea2785e64987c1f449444c83bc490..1b0a2498df1d988dc4fee911eb6937d6c97ea7a3 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-31  Graham Stott  <grahams@redhat.com>
+
+       * cfgloop.c (flow_loop_entry_edges_find): Fix typo.
+        (flow_loop_exit_edges_find): Likewise.
+
 2001-12-31  Graham Stott  <grahams@redhat.com>
 
        * gcse.c (gcse_main): Fix typos.
index b4b8eb73fbd8730c203774b36f0a84186e634e3a..9cb1db9343c4fd0382870d8109ea713cef4a4f26 100644 (file)
@@ -266,7 +266,7 @@ flow_loop_entry_edges_find (header, nodes, entry_edges)
   if (! num_entries)
     abort ();
 
-  *entry_edges = (edge *) xmalloc (num_entries * sizeof (edge *));
+  *entry_edges = (edge *) xmalloc (num_entries * sizeof (edge));
 
   num_entries = 0;
   for (e = header->pred; e; e = e->pred_next)
@@ -313,7 +313,7 @@ flow_loop_exit_edges_find (nodes, exit_edges)
   if (! num_exits)
     return 0;
 
-  *exit_edges = (edge *) xmalloc (num_exits * sizeof (edge *));
+  *exit_edges = (edge *) xmalloc (num_exits * sizeof (edge));
 
   /* Store all exiting edges into an array.  */
   num_exits = 0;