diff options
author | Jan Hubicka <jh@suse.cz> | 2020-10-10 21:22:52 +0200 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2020-10-10 21:22:52 +0200 |
commit | 6a6c85f4e11fe8160dcb3942fc00664da4a98717 (patch) | |
tree | 7d662757299f5c188e8740aa7853f833634d1f9e /gcc | |
parent | c8fd2be174a15ff154a3102decb0e643f67cad02 (diff) | |
download | gcc-6a6c85f4e11fe8160dcb3942fc00664da4a98717.zip gcc-6a6c85f4e11fe8160dcb3942fc00664da4a98717.tar.gz gcc-6a6c85f4e11fe8160dcb3942fc00664da4a98717.tar.bz2 |
Fix ipa-modref ICE with not allocated summaries.
* ipa-modref.c (modref_transform): Check that summaries are allocated.
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 9392d73..2b561fe 100644 --- a/gcc/ipa-modref.c +++ b/gcc/ipa-modref.c @@ -1343,7 +1343,7 @@ remap_arguments (vec <int> *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) |