summaryrefslogtreecommitdiff
path: root/gcc/cfgloop.c
diff options
context:
space:
mode:
authorgrahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-31 03:54:04 +0000
committergrahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-31 03:54:04 +0000
commit0472305e451bab072d8f4ecfd9de4363f161ebe4 (patch)
tree6f2e59a96106f0fe823767e2021574a37e276083 /gcc/cfgloop.c
parent8b31bea9f070e07568e712f61ec47f3b99b688d6 (diff)
downloadlinaro-gcc-0472305e451bab072d8f4ecfd9de4363f161ebe4.tar.gz
linaro-gcc-0472305e451bab072d8f4ecfd9de4363f161ebe4.tar.bz2
linaro-gcc-0472305e451bab072d8f4ecfd9de4363f161ebe4.zip
* cfgloop.c (flow_loop_entry_edges_find): Fix typo.
(flow_loop_exit_edges_find): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48407 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgloop.c')
-rw-r--r--gcc/cfgloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c
index b4b8eb73fbd..9cb1db9343c 100644
--- a/gcc/cfgloop.c
+++ b/gcc/cfgloop.c
@@ -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;