From 68e7489b6c1035c69ee008a63d3d56e89fafbb30 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 23 Feb 2023 15:24:43 +0100 Subject: [PATCH] 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. --- gcc/ipa-prop.cc | 1 + 1 file changed, 1 insertion(+) 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))) { -- 2.47.2