From 6a6c85f4e11fe8160dcb3942fc00664da4a98717 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 10 Oct 2020 21:22:52 +0200 Subject: [PATCH] Fix ipa-modref ICE with not allocated summaries. * ipa-modref.c (modref_transform): Check that summaries are allocated. --- gcc/ipa-modref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2