https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93223

Martin Jambor <jamborm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jamborm at gcc dot 
gnu.org

--- Comment #2 from Martin Jambor <jamborm at gcc dot gnu.org> ---
(In reply to Christoph Höger from comment #0)
> it looks like the result of ipa_fn_summaries->get (callee); should be
> checked for nullptr.

Indeed, we figure out that after cloning we could devirtualize to a
function which is however compiled at -O0 and so has no inlining
summary info attached to it.  Since we would nto inline such a
function, checking for NULL is exactly what needs to be done.  I'll
prepare a patch, thanks for reporting.

Reply via email to