]> gcc.gnu.org Git - gcc.git/commit
Check operands before invoking fold_range.
authorAndrew MacLeod <amacleod@redhat.com>
Tue, 28 Nov 2023 18:02:35 +0000 (13:02 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Wed, 29 Nov 2023 16:43:53 +0000 (11:43 -0500)
commit634cf26c94de620e66aa124b8ec4d6c2be4b74b2
tree72d2ca593e41e4f7fc6c111480ae536c57259157
parentea19de921b01a6ab470929f8da4dde526edb08f1
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.
gcc/ipa-cp.cc
gcc/testsuite/gcc.dg/pr111922.c [new file with mode: 0644]
This page took 0.064811 seconds and 6 git commands to generate.