* flow.c (create_edge_list): Cast xmalloc return value.

From-SVN: r30886
This commit is contained in:
Jeff Law 1999-12-13 00:55:53 -07:00
parent eb33f7449c
commit 2c852885c4
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,11 @@
Mon Dec 13 00:54:14 1999 Philippe De Muyter <phdm@macqel.be>
* flow.c (create_edge_list): Cast xmalloc return value.
Mon Dec 13 00:47:58 1999 Jeffrey A Law (law@cygnus.com)
* cse.c: Fix a few minor whitespace goofs.
1999-12-13 Don Bowman <don@pixstream.com>
* mips/vxworks.h: Fix problem with comment termination.

View File

@ -6009,10 +6009,10 @@ create_edge_list ()
for (e = ENTRY_BLOCK_PTR->succ; e; e = e->succ_next)
num_edges++;
elist = xmalloc (sizeof (struct edge_list));
elist = (struct edge_list *) xmalloc (sizeof (struct edge_list));
elist->num_blocks = block_count;
elist->num_edges = num_edges;
elist->index_to_edge = xmalloc (sizeof (edge) * num_edges);
elist->index_to_edge = (edge *) xmalloc (sizeof (edge) * num_edges);
num_edges = 0;