diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2022-09-21 16:15:02 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2022-09-22 14:48:28 -0400 |
commit | 2f92f685da2ef9e82ee6262519919180df8f2dd9 (patch) | |
tree | ae1e971cdb3c1b762e97f5b5ab1484f2b3bb4b49 /libgcc | |
parent | be2a25adbdc76a770f7470cc9f47892f7a4139ae (diff) | |
download | gcc-2f92f685da2ef9e82ee6262519919180df8f2dd9.zip gcc-2f92f685da2ef9e82ee6262519919180df8f2dd9.tar.gz gcc-2f92f685da2ef9e82ee6262519919180df8f2dd9.tar.bz2 |
Always check the return value of fold_range.
The fold_range routine in range-ops returns FALSE if the operation
fails. There are a few places which assume the operation was
successful. Fix those.
* gimple-range-fold.cc (range_of_range_op): Set result to
VARYING if the call to fold_range fails.
* tree-data-ref.cc (compute_distributive_range): Ditto.
* tree-vrp.cc (range_fold_binary_expr): Ditto.
(range_fold_unary_expr): Ditto.
* value-query.cc (range_query::get_tree_range): Ditto.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions