diff options
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r-- | gcc/ipa-inline.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 366fc22..c10a618 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1206,8 +1206,9 @@ recursive_inlining (struct cgraph_edge *edge, depth = 1; for (cnode = curr->caller; cnode->global.inlined_to; cnode = cnode->callers->caller) - if (node->decl == curr->callee->decl) - depth++; + if (node->decl + == cgraph_function_or_thunk_node (curr->callee, NULL)->decl) + depth++; if (!want_inline_self_recursive_call_p (curr, node, false, depth)) continue; |