aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r--gcc/ipa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c
index 01e9bee..9905ba7 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -915,7 +915,7 @@ function_and_variable_visibility (bool whole_program)
struct cgraph_edge *e = node->callers;
cgraph_redirect_edge_callee (e, alias);
- if (!flag_wpa)
+ if (gimple_has_body_p (e->caller->symbol.decl))
{
push_cfun (DECL_STRUCT_FUNCTION (e->caller->symbol.decl));
cgraph_redirect_edge_call_stmt_to_callee (e);