summaryrefslogtreecommitdiff
path: root/gcc/ipa-visibility.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ipa-visibility.c')
-rw-r--r--gcc/ipa-visibility.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c
index e3ab005762c..3fed3455b67 100644
--- a/gcc/ipa-visibility.c
+++ b/gcc/ipa-visibility.c
@@ -686,6 +686,8 @@ function_and_variable_visibility (bool whole_program)
if (found)
{
struct pointer_set_t *visited_nodes = pointer_set_create ();
+
+ varpool_get_constructor (vnode);
walk_tree (&DECL_INITIAL (vnode->decl),
update_vtable_references, NULL, visited_nodes);
pointer_set_destroy (visited_nodes);