From: Jan Hubicka Date: Thu, 1 Oct 2020 13:27:00 +0000 (+0200) Subject: Fix ICE in compute_parm_map X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=899c10c9d6caba9ec372174527d5bf2866edd32c;p=gcc.git Fix ICE in compute_parm_map gcc/ChangeLog: * ipa-modref.c (compute_parm_map): Be ready for callee_pi to be NULL. --- diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c index 2f4da8f2a14..71a79553953 100644 --- a/gcc/ipa-modref.c +++ b/gcc/ipa-modref.c @@ -1363,7 +1363,7 @@ compute_parm_map (cgraph_edge *callee_edge, vec *parm_map) struct ipa_jump_func *jf = ipa_get_ith_jump_func (args, i); - if (jf) + if (jf && callee_pi) { tree cst = ipa_value_from_jfunc (caller_parms_info, jf,