summaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 0c2441fcf6f..105cdab14a6 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -2606,6 +2606,8 @@ cgraph_node_cannot_return (struct cgraph_node *node)
bool
cgraph_edge_cannot_lead_to_return (struct cgraph_edge *e)
{
+ if (cgraph_node_cannot_return (e->caller))
+ return true;
if (e->indirect_unknown_callee)
{
int flags = e->indirect_info->ecf_flags;