summaryrefslogtreecommitdiff
path: root/gcc/ipa-profile.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-11-13 20:44:35 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2019-11-13 19:44:35 +0000
commit7b34a284cab5d533552c1df995a88f7167d243bd (patch)
treef341e4ec2029496e43751b0ec036a4b16f3f5526 /gcc/ipa-profile.c
parent223f4b10e9d753021825d47fbd59072536f2c264 (diff)
re PR ipa/92498 (gcc.dg/tree-prof/crossmodule-indircall-1.c fails starting with r278100)
PR ipa/92498 * ipa-profile.c (check_argument_count): Do not ICE when descriptors is NULL. (ipa_profile): Fix reversed test. From-SVN: r278157
Diffstat (limited to 'gcc/ipa-profile.c')
-rw-r--r--gcc/ipa-profile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c
index cd354d1a73e..c6976431a83 100644
--- a/gcc/ipa-profile.c
+++ b/gcc/ipa-profile.c
@@ -487,6 +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)
return true;
@@ -620,7 +622,7 @@ ipa_profile (void)
"Not speculating: target is overwritable "
"and can be discarded.\n");
}
- else if (check_argument_count (n2, e))
+ else if (!check_argument_count (n2, e))
{
nmismatch++;
if (dump_file)