From: Jakub Jelinek Date: Thu, 23 Feb 2023 14:24:43 +0000 (+0100) Subject: ipa-prop: Fix another case of missing BUILT_IN_UNREACHABLE_TRAP handling [PR106258] X-Git-Tag: basepoints/gcc-14~904 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68e7489b6c1035c69ee008a63d3d56e89fafbb30;p=thirdparty%2Fgcc.git 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 PR middle-end/106258 * ipa-prop.cc (try_make_edge_direct_virtual_call): Handle BUILT_IN_UNREACHABLE_TRAP like BUILT_IN_UNREACHABLE. --- diff --git a/gcc/ipa-prop.cc b/gcc/ipa-prop.cc index 16c4b0365582..de45dbccf16d 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))) {