diff options
Diffstat (limited to 'gcc/tree-optimize.c')
-rw-r--r-- | gcc/tree-optimize.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c index f4ad9669ef4..4f8b81c6909 100644 --- a/gcc/tree-optimize.c +++ b/gcc/tree-optimize.c @@ -655,8 +655,7 @@ tree_rest_of_compilation (tree fndecl) /* We are not going to maintain the cgraph edges up to date. Kill it so it won't confuse us. */ - while (node->callees) - cgraph_remove_edge (node->callees); + cgraph_node_remove_callees (node); /* Initialize the default bitmap obstack. */ @@ -687,8 +686,7 @@ tree_rest_of_compilation (tree fndecl) { struct cgraph_edge *e; - while (node->callees) - cgraph_remove_edge (node->callees); + cgraph_node_remove_callees (node); node->callees = saved_node->callees; saved_node->callees = NULL; update_inlined_to_pointers (node, node); |