From c4d0acf8f7af9c0ab1023b1e09cb17ae9b537204 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 16 Jul 2018 15:33:23 +0200 Subject: Revert one more symbol_summary::get to ::get_create (PR ipa/86529). 2018-07-16 Martin Liska PR ipa/86529 * ipa-pure-const.c (malloc_candidate_p): Revert ::get to ::get_create. 2018-07-16 Martin Liska PR ipa/86529 * g++.dg/ipa/pr86529.C: New test. From-SVN: r262695 --- gcc/ipa-pure-const.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/ipa-pure-const.c') diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c index dede783..a9a8863 100644 --- a/gcc/ipa-pure-const.c +++ b/gcc/ipa-pure-const.c @@ -958,8 +958,7 @@ malloc_candidate_p (function *fun, bool ipa) cgraph_edge *cs = node->get_edge (call_stmt); if (cs) { - ipa_call_summary *es = ipa_call_summaries->get (cs); - gcc_assert (es); + ipa_call_summary *es = ipa_call_summaries->get_create (cs); es->is_return_callee_uncaptured = true; } } -- cgit v1.1