Fix ICE in compute_parm_map
authorJan Hubicka <jh@suse.cz>
Thu, 1 Oct 2020 13:27:00 +0000 (15:27 +0200)
committerJan Hubicka <jh@suse.cz>
Thu, 1 Oct 2020 13:27:00 +0000 (15:27 +0200)
gcc/ChangeLog:

* ipa-modref.c (compute_parm_map): Be ready for callee_pi to be NULL.

gcc/ipa-modref.c

index 2f4da8f..71a7955 100644 (file)
@@ -1363,7 +1363,7 @@ compute_parm_map (cgraph_edge *callee_edge, vec<int> *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,