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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Aldy Hernandez <al...@gcc.gnu.org>:

https://gcc.gnu.org/g:bc6e336cb7c85094ddc77757be97c3d8588f35ca

commit r15-627-gbc6e336cb7c85094ddc77757be97c3d8588f35ca
Author: Aldy Hernandez <al...@redhat.com>
Date:   Fri May 17 10:30:03 2024 +0200

    [prange] Avoid looking at type() for undefined ranges

    Undefined ranges have no type.  This patch fixes the thinko.

    gcc/ChangeLog:

            PR middle-end/115128
            * ipa-cp.cc (ipa_value_range_from_jfunc): Check for undefined_p
            before looking at type.
            (propagate_vr_across_jump_function): Same.

    gcc/testsuite/ChangeLog:

            * gcc.dg/tree-ssa/pr115128.c: New test.

Reply via email to