summaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 150c74e2ef7..aafb9175143 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -2076,7 +2076,7 @@ duplicate_decls (tree newdecl, tree olddecl, bool newdecl_is_friend)
if (TREE_CODE (olddecl) == FUNCTION_DECL)
symbol = cgraph_node::get_create (newdecl);
else
- symbol = varpool_node_for_decl (newdecl);
+ symbol = varpool_node::get_create (newdecl);
symbol->set_comdat_group (symtab_node::get
(olddecl)->get_comdat_group ());
}