From: Jan Hubicka Date: Wed, 13 Nov 2019 23:39:44 +0000 (+0100) Subject: ipa-profile.c (check_argument_count): Check properly that e_info is non-NULL; do... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d772e360ba9fa1f683bac47fcb66988462d2a583;p=gcc.git 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 --- 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)