diff options
Diffstat (limited to 'gcc/tree-ssa-coalesce.c')
-rw-r--r-- | gcc/tree-ssa-coalesce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-coalesce.c b/gcc/tree-ssa-coalesce.c index 5953fec17e8..04f97cf1462 100644 --- a/gcc/tree-ssa-coalesce.c +++ b/gcc/tree-ssa-coalesce.c @@ -260,7 +260,7 @@ find_coalesce_pair (coalesce_list_p cl, int p1, int p2, bool create) if (create && !pair) { gcc_assert (cl->sorted == NULL); - pair = xmalloc (sizeof (struct coalesce_pair)); + pair = XNEW (struct coalesce_pair); pair->first_element = p.first_element; pair->second_element = p.second_element; pair->cost = 0; @@ -276,7 +276,7 @@ add_cost_one_coalesce (coalesce_list_p cl, int p1, int p2) { cost_one_pair_p pair; - pair = xmalloc (sizeof (struct cost_one_pair_d)); + pair = XNEW (struct cost_one_pair_d); pair->first_element = p1; pair->second_element = p2; pair->next = cl->cost_one_list; |