diff options
author | Jan Hubicka <jh@suse.cz> | 2020-10-01 15:27:00 +0200 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2020-10-01 15:27:00 +0200 |
commit | 899c10c9d6caba9ec372174527d5bf2866edd32c (patch) | |
tree | 2e3f4766a5f7d9bf4aa708a8d45763778250bfe9 /gcc | |
parent | a12041339e8032f40acd5f1c0365f5b3a1469bf5 (diff) | |
download | gcc-899c10c9d6caba9ec372174527d5bf2866edd32c.zip gcc-899c10c9d6caba9ec372174527d5bf2866edd32c.tar.gz gcc-899c10c9d6caba9ec372174527d5bf2866edd32c.tar.bz2 |
Fix ICE in compute_parm_map
gcc/ChangeLog:
* ipa-modref.c (compute_parm_map): Be ready for callee_pi to be NULL.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ipa-modref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c index 2f4da8f..71a7955 100644 --- a/gcc/ipa-modref.c +++ b/gcc/ipa-modref.c @@ -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, |