diff options
author | Jakub Jelinek <jakub@redhat.com> | 2023-02-23 15:24:43 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2023-02-23 15:24:43 +0100 |
commit | 68e7489b6c1035c69ee008a63d3d56e89fafbb30 (patch) | |
tree | 84e55576537fe65fd1d74ebbc8cddc0a3e26ae99 /gcc | |
parent | 8fda668e0919af9ceda9435f02a1708b375b2913 (diff) | |
download | gcc-68e7489b6c1035c69ee008a63d3d56e89fafbb30.zip gcc-68e7489b6c1035c69ee008a63d3d56e89fafbb30.tar.gz gcc-68e7489b6c1035c69ee008a63d3d56e89fafbb30.tar.bz2 |
ipa-prop: Fix another case of missing BUILT_IN_UNREACHABLE_TRAP handling [PR106258]
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ipa-prop.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ipa-prop.cc b/gcc/ipa-prop.cc index 16c4b03..de45dbc 100644 --- a/gcc/ipa-prop.cc +++ b/gcc/ipa-prop.cc @@ -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))) { |