]> git.ipfire.org Git - thirdparty/gcc.git/commit
range-ops should return the requested boolean type.
authorAndrew MacLeod <amacleod@redhat.com>
Tue, 16 Jul 2024 16:38:11 +0000 (12:38 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Tue, 16 Jul 2024 21:22:10 +0000 (17:22 -0400)
commit73a8286d3ae266955fa921da1fa1328a587e7bb7
tree665aef611b4f0bc159ccb6dfc288ac004cbe039b
parent40a990c8b512fd25bd7d7b45aa509e1880d77209
range-ops should return the requested boolean type.

The pointer based relation operator's fold_range () routines should
return a boolean range with the requested type, not the default type.

PR tree-optimization/115951
* range-op-ptr.cc (operator_equal::fold_range): Return a boolean
range with the requested type.
(operator_not_equal::fold_range): Likewise.
(operator_lt::fold_range): Likewise.
(operator_le::fold_range): Likewise.
(operator_gt::fold_range): Likewise.
(operator_ge::fold_range): Likewise.
gcc/range-op-ptr.cc