* ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
previous patch.
From-SVN: r277347
+2019-10-23 Jan Hubicka <hubicka@ucw.cz>
+
+ * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
+ previous patch.
+
2019-10-23 Jan Hubicka <hubicka@ucw.cz>
* lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
static void
varpool_removal_hook (varpool_node *node, void *)
{
- int *id = ipa_reference_vars_map->get (node->decl)
- if (id)
- ipa_reference_vars_map->remove (*id);
+ ipa_reference_vars_map->remove (node->decl);
}
static bool ipa_init_p = false;
ipa_ref_opt_sum_summaries = NULL;
delete ipa_reference_vars_map;
ipa_reference_vars_map = NULL;
- symtab->remove_varpool_removal_hook (varpool_node_hooks)
+ symtab->remove_varpool_removal_hook (varpool_node_hooks);
}
if (ipa_init_p)