ipa-profile.c (check_argument_count): Check properly that e_info is non-NULL; do...
authorJan Hubicka <hubicka@ucw.cz>
Wed, 13 Nov 2019 23:39:44 +0000 (00:39 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 13 Nov 2019 23:39:44 +0000 (23:39 +0000)
* ipa-profile.c (check_argument_count): Check properly that e_info
is non-NULL; do not check descriptors.

From-SVN: r278184

gcc/ChangeLog
gcc/ipa-profile.c

index a5d97b896a6d954d617b66aee192942b3aaefb07..b41e6969ff6a54be5313a90e44b4b7951123746f 100644 (file)
@@ -1,3 +1,8 @@
+2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-profile.c (check_argument_count): Check properly that e_info
+       is non-NULL; do not check descriptors.
+
 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
 
        * ipa-inline-analysis.c (do_estimate_edge_time): Relax
index c6976431a839940ca9774575f18f946abe8c430e..61fd5e86681958478129d9fee2b8def2ee8d779a 100644 (file)
@@ -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)