aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cgraph.cc')
-rw-r--r--gcc/cgraph.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/gcc/cgraph.cc b/gcc/cgraph.cc
index d1b2e2a..ab09376 100644
--- a/gcc/cgraph.cc
+++ b/gcc/cgraph.cc
@@ -2220,11 +2220,7 @@ cgraph_node::release_body (bool keep_arguments)
if (!used_as_abstract_origin && DECL_INITIAL (decl))
DECL_INITIAL (decl) = error_mark_node;
release_function_body (decl);
- if (lto_file_data)
- {
- lto_free_function_in_decl_state_for_node (this);
- lto_file_data = NULL;
- }
+ lto_free_function_in_decl_state_for_node (this);
if (flag_checking && clones)
{
/* It is invalid to release body before materializing clones except
@@ -2336,10 +2332,7 @@ cgraph_node::remove (void)
release_body ();
}
else
- {
- lto_free_function_in_decl_state_for_node (this);
- lto_file_data = NULL;
- }
+ lto_free_function_in_decl_state_for_node (this);
decl = NULL;
if (call_site_hash)