aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2021-04-10 11:17:56 +0200
committerJan Hubicka <jh@suse.cz>2021-04-10 11:17:56 +0200
commit1c9744fb3bf2fbf7cec5722f4b187eb553d98280 (patch)
treef0071d8eb232fa9b9ab3c64918480144e2a53e7f /gcc/tree.c
parent1a19d334ce493ec2ce2daeac74beef63fd67e2bc (diff)
downloadgcc-1c9744fb3bf2fbf7cec5722f4b187eb553d98280.zip
gcc-1c9744fb3bf2fbf7cec5722f4b187eb553d98280.tar.gz
gcc-1c9744fb3bf2fbf7cec5722f4b187eb553d98280.tar.bz2
Do not release body of declare_variant_alt
gcc/ChangeLog: 2021-04-10 Jan Hubicka <hubicka@ucw.cz> PR lto/99857 * tree.c (free_lang_data_in_decl): Do not release body of declare_variant_alt.
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 7c44c22..e4e74ac 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5849,7 +5849,7 @@ free_lang_data_in_decl (tree decl, class free_lang_data_d *fld)
if (!(node = cgraph_node::get (decl))
|| (!node->definition && !node->clones))
{
- if (node)
+ if (node && !node->declare_variant_alt)
node->release_body ();
else
{