aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
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 4e00004..5a1d167 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5418,7 +5418,7 @@ free_lang_data_in_decl (tree decl)
DECL_INITIAL (decl) = error_mark_node;
}
}
- if (gimple_has_body_p (decl))
+ if (gimple_has_body_p (decl) || (node && node->thunk.thunk_p))
{
tree t;