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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>:

https://gcc.gnu.org/g:895fdc1f4c9ff1dfb18b80af838aa353363edb40

commit r11-4592-g895fdc1f4c9ff1dfb18b80af838aa353363edb40
Author: Iain Buclaw <ibuc...@gdcproject.org>
Date:   Sun Nov 1 16:39:10 2020 +0100

    ipa: Fix segmentation fault in
function_summary<clone_info*>::get(cgraph_node*)

    PR 97660 occurs when cgraph_node::get returns NULL, and this NULL
    cgraph_node is then passed to clone_info::get.  As the original assert
    prior to the regressing change in r11-4587 allowed for the cgraph_node
    to be NULL, clone_info::get is now only called when cgraph_node::get
    returns a nonnull value.

    gcc/ChangeLog:

            PR ipa/97660
            * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't call
            clone_info::get when cgraph_node::get returns NULL.

Reply via email to