diff options
Diffstat (limited to 'gcc/conflict.c')
-rw-r--r-- | gcc/conflict.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/conflict.c b/gcc/conflict.c index 9b637737411..c832b7df52c 100644 --- a/gcc/conflict.c +++ b/gcc/conflict.c @@ -160,9 +160,8 @@ conflict_graph_new (int num_regs) obstack_init (&graph->arc_obstack); /* Create and zero the lookup table by register number. */ - graph->neighbor_heads = xmalloc (num_regs * sizeof (conflict_graph_arc)); + graph->neighbor_heads = xcalloc (num_regs, sizeof (conflict_graph_arc)); - memset (graph->neighbor_heads, 0, num_regs * sizeof (conflict_graph_arc)); return graph; } |