aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2020-09-20 08:19:56 +0200
committerJan Hubicka <jh@suse.cz>2020-09-20 08:19:56 +0200
commit9044db88d634c631920eaa9f66c0275adf18fdf5 (patch)
treebc0dda0af5499d53b2901d5cf3b048d8aa779330 /gcc
parentd119f34c952f8718fdbabc63e2f369a16e92fa07 (diff)
downloadgcc-9044db88d634c631920eaa9f66c0275adf18fdf5.zip
gcc-9044db88d634c631920eaa9f66c0275adf18fdf5.tar.gz
gcc-9044db88d634c631920eaa9f66c0275adf18fdf5.tar.bz2
Fix ICE during dumping in ipa-modref.
2020-09-20 Jan Hubicka <hubicka@ucw.cz> * ipa-modref.c (dump_lto_records): Fix ICE.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ipa-modref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c
index f982ce9..af0b710 100644
--- a/gcc/ipa-modref.c
+++ b/gcc/ipa-modref.c
@@ -156,7 +156,7 @@ dump_lto_records (modref_records_lto *tt, FILE *out)
fprintf (out, " Base %i:", (int)i);
print_generic_expr (dump_file, n->base);
fprintf (out, " (alias set %i)\n",
- get_alias_set (n->base));
+ n->base ? get_alias_set (n->base) : 0);
if (n->every_ref)
{
fprintf (out, " Every ref\n");
@@ -169,7 +169,7 @@ dump_lto_records (modref_records_lto *tt, FILE *out)
fprintf (out, " Ref %i:", (int)j);
print_generic_expr (dump_file, r->ref);
fprintf (out, " (alias set %i)\n",
- get_alias_set (r->ref));
+ r->ref ? get_alias_set (r->ref) : 0);
}
}
}