]> gcc.gnu.org Git - gcc.git/commit
Pass correct type to irange::contains_p() in ipa-cp.cc.
authorAldy Hernandez <aldyh@redhat.com>
Mon, 21 Nov 2022 22:18:43 +0000 (23:18 +0100)
committerAldy Hernandez <aldyh@redhat.com>
Tue, 25 Apr 2023 07:38:33 +0000 (09:38 +0200)
commit36d98023c8b8d2a2e286ab68b1d17402c217102d
tree26e97912dad42127d44d86c841fd215f7270727e
parenta4916881b74c36c613a8a7abe040bb197ea8ba75
Pass correct type to irange::contains_p() in ipa-cp.cc.

There is a call to contains_p() in ipa-cp.cc which passes incompatible
types.  This currently works because deep in the call chain, the legacy
code uses tree_int_cst_lt which performs the operation with
widest_int.  With the upcoming removal of legacy, contains_p() will be
stricter.

gcc/ChangeLog:

* ipa-cp.cc (ipa_range_contains_p): New.
(decide_whether_version_node): Use it.
gcc/ipa-cp.cc
This page took 0.056353 seconds and 5 git commands to generate.