aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2009-11-17 10:35:51 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2009-11-17 09:35:51 +0000
commitf875410705747d41663d99d930469fd295a47a4b (patch)
tree5c2d2e6d83ad71202162d80457067c8abba0eec2 /gcc/cgraph.c
parentaaf5d6c03bfda69eb7327584815380af73029da8 (diff)
downloadgcc-f875410705747d41663d99d930469fd295a47a4b.zip
gcc-f875410705747d41663d99d930469fd295a47a4b.tar.gz
gcc-f875410705747d41663d99d930469fd295a47a4b.tar.bz2
cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access removed node.
* cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access removed node. * cgraphunit.c (verify_cgraph_node): Verify frequencies for match. From-SVN: r154242
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index f2d7609..391882e 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -1000,10 +1000,10 @@ cgraph_update_edges_for_call_stmt_node (struct cgraph_node *node,
/* Otherwise remove edge and create new one; we can't simply redirect
since function has changed, so inline plan and other information
attached to edge is invalid. */
- cgraph_remove_edge (e);
count = e->count;
frequency = e->frequency;
loop_nest = e->loop_nest;
+ cgraph_remove_edge (e);
}
else
{