From: Jan Hubicka Date: Sat, 10 Oct 2020 19:22:52 +0000 (+0200) Subject: Fix ipa-modref ICE with not allocated summaries. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a6c85f4e11fe8160dcb3942fc00664da4a98717;p=gcc.git Fix ipa-modref ICE with not allocated summaries. * ipa-modref.c (modref_transform): Check that summaries are allocated. --- diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c index 9392d73a941..2b561fe3179 100644 --- a/gcc/ipa-modref.c +++ b/gcc/ipa-modref.c @@ -1343,7 +1343,7 @@ remap_arguments (vec *map, modref_records *tt) static unsigned int modref_transform (struct cgraph_node *node) { - if (!node->clone.param_adjustments) + if (!node->clone.param_adjustments || !summaries) return 0; modref_summary *r = summaries->get (node); if (!r)