]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ipa-prop: Fix another case of missing BUILT_IN_UNREACHABLE_TRAP handling [PR106258]
authorJakub Jelinek <jakub@redhat.com>
Thu, 23 Feb 2023 14:24:43 +0000 (15:24 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 23 Feb 2023 14:24:43 +0000 (15:24 +0100)
There is another spot that handles in IPA just BUILT_IN_UNREACHABLE and
not BUILT_IN_UNREACHABLE_TRAP.

This patch fixes that.

2023-02-23  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/106258
* ipa-prop.cc (try_make_edge_direct_virtual_call): Handle
BUILT_IN_UNREACHABLE_TRAP like BUILT_IN_UNREACHABLE.

gcc/ipa-prop.cc

index 16c4b03655820b11d299365f529ca490bdbc1480..de45dbccf16df5407d47c0a48a552be8255896c3 100644 (file)
@@ -3850,6 +3850,7 @@ try_make_edge_direct_virtual_call (struct cgraph_edge *ie,
            {
              if (!t
                  || fndecl_built_in_p (t, BUILT_IN_UNREACHABLE)
+                 || fndecl_built_in_p (t, BUILT_IN_UNREACHABLE_TRAP)
                  || !possible_polymorphic_call_target_p
                       (ie, cgraph_node::get (t)))
                {