]> gcc.gnu.org Git - gcc.git/commit
fold: fix use of protected_set_expr_location_unshare
authorJason Merrill <jason@redhat.com>
Wed, 21 Dec 2022 02:06:09 +0000 (21:06 -0500)
committerJason Merrill <jason@redhat.com>
Wed, 21 Dec 2022 02:07:31 +0000 (21:07 -0500)
commitef0abcbc400e0ecb8ed1ddf61d96f8f3f88fe63b
tree8a50dd12886f90efacee68469a337b6b9e6047a3
parent302485a70a33f3a86e85ad9051de2b51c5dc0bc0
fold: fix use of protected_set_expr_location_unshare

Unlike protected_set_expr_location, this variant can return
a different tree.

gcc/ChangeLog:

* fold-const.cc (fold_convert_loc): Check return value of
protected_set_expr_location_unshare.
gcc/fold-const.cc
This page took 0.058489 seconds and 5 git commands to generate.