From d772e360ba9fa1f683bac47fcb66988462d2a583 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 14 Nov 2019 00:39:44 +0100 Subject: [PATCH] ipa-profile.c (check_argument_count): Check properly that e_info is non-NULL; do not check descriptors. * ipa-profile.c (check_argument_count): Check properly that e_info is non-NULL; do not check descriptors. From-SVN: r278184 --- gcc/ChangeLog | 5 +++++ gcc/ipa-profile.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a5d97b896a6..b41e6969ff6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-11-13 Jan Hubicka + + * ipa-profile.c (check_argument_count): Check properly that e_info + is non-NULL; do not check descriptors. + 2019-11-13 Jan Hubicka * ipa-inline-analysis.c (do_estimate_edge_time): Relax diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c index c6976431a83..61fd5e86681 100644 --- a/gcc/ipa-profile.c +++ b/gcc/ipa-profile.c @@ -487,10 +487,8 @@ check_argument_count (struct cgraph_node *n, struct cgraph_edge *e) class ipa_node_params *info = IPA_NODE_REF (n->function_symbol ()); if (!info) return true; - if (!info->descriptors) - return true; ipa_edge_args *e_info = IPA_EDGE_REF (e); - if (!e) + if (!e_info) return true; if (ipa_get_param_count (info) != ipa_get_cs_argument_count (e_info) && (ipa_get_param_count (info) >= ipa_get_cs_argument_count (e_info) -- 2.30.2