summaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index cea44d491d3..77f8839828a 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -389,7 +389,8 @@ use_thunk (tree thunk_fndecl, bool emit_p)
this_adjusting, fixed_offset, virtual_value,
virtual_offset, alias);
if (DECL_ONE_ONLY (function))
- cgraph_add_to_same_comdat_group (thunk_node, funcn);
+ symtab_add_to_same_comdat_group ((symtab_node) thunk_node,
+ (symtab_node) funcn);
if (!this_adjusting
|| !targetm.asm_out.can_output_mi_thunk (thunk_fndecl, fixed_offset,