+2018-06-21 Martin Liska <mliska@suse.cz>
+
+ * ipa-pure-const.c (propagate_nothrow): Use
+ funct_state_summaries->get.
+ (dump_malloc_lattice): Likewise.
+ (propagate_malloc): Likewise.
+
2018-06-21 Richard Biener <rguenther@suse.de>
* lto-streamer-out.c (DFS::DFS_write_tree_body): Update outdated
w = node;
while (w)
{
- funct_state w_l = funct_state_summaries->get_create (w);
+ funct_state w_l = funct_state_summaries->get (w);
if (!can_throw && !TREE_NOTHROW (w->decl))
{
/* Inline clones share declaration with their offline copies;
cgraph_node *node;
FOR_EACH_FUNCTION (node)
{
- funct_state fs = funct_state_summaries->get_create (node);
- malloc_state_e state = fs->malloc_state;
- fprintf (dump_file, "%s: %s\n", node->name (), malloc_state_names[state]);
+ funct_state fs = funct_state_summaries->get (node);
+ if (fs)
+ fprintf (dump_file, "%s: %s\n", node->name (),
+ malloc_state_names[fs->malloc_state]);
}
}
|| !funct_state_summaries->exists (node))
continue;
- funct_state l = funct_state_summaries->get_create (node);
+ funct_state l = funct_state_summaries->get (node);
/* FIXME: add support for indirect-calls. */
if (node->indirect_calls)
FOR_EACH_DEFINED_FUNCTION (node)
if (funct_state_summaries->exists (node))
{
- funct_state l = funct_state_summaries->get_create (node);
+ funct_state l = funct_state_summaries->get (node);
if (!node->alias
&& l->malloc_state == STATE_MALLOC
&& !node->global.inlined_to)