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

--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andrew Macleod <amacl...@gcc.gnu.org>:

https://gcc.gnu.org/g:634cf26c94de620e66aa124b8ec4d6c2be4b74b2

commit r14-5973-g634cf26c94de620e66aa124b8ec4d6c2be4b74b2
Author: Andrew MacLeod <amacl...@redhat.com>
Date:   Tue Nov 28 13:02:35 2023 -0500

    Check operands before invoking fold_range.

    Call check_operands_p before fold_range to make sure it is a valid
operation.

            PR tree-optimization/111922
            gcc/
            * ipa-cp.cc (ipa_vr_operation_and_type_effects): Check the
            operands are valid before calling fold_range.

            gcc/testsuite/
            * gcc.dg/pr111922.c: New.

Reply via email to