Commit 2c852885 by Jeff Law

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

From-SVN: r30886
parent eb33f744
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.
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment