aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2022-09-21 16:15:02 -0400
committerAndrew MacLeod <amacleod@redhat.com>2022-09-22 14:48:28 -0400
commit2f92f685da2ef9e82ee6262519919180df8f2dd9 (patch)
treeae1e971cdb3c1b762e97f5b5ab1484f2b3bb4b49 /libgcc
parentbe2a25adbdc76a770f7470cc9f47892f7a4139ae (diff)
downloadgcc-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