diff options
Diffstat (limited to 'gcc/cp/mangle.c')
-rw-r--r-- | gcc/cp/mangle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index 02c05d47747..8983e0dfa69 100644 --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -3487,8 +3487,8 @@ mangle_decl (const tree decl) if (TREE_CODE (decl) == FUNCTION_DECL) { /* Don't create an alias to an unreferenced function. */ - if (struct cgraph_node *n = cgraph_get_node (decl)) - cgraph_same_body_alias (n, alias, decl); + if (struct cgraph_node *n = cgraph_node::get (decl)) + n->create_same_body_alias (alias, decl); } else varpool_extra_name_alias (alias, decl); |