ipa-prop.c (update_jump_functions_after_inlining): Watch for missing summaries.
authorJan Hubicka <hubicka@ucw.cz>
Wed, 30 Oct 2019 09:25:18 +0000 (10:25 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 30 Oct 2019 09:25:18 +0000 (09:25 +0000)
* ipa-prop.c (update_jump_functions_after_inlining):
Watch for missing summaries.

From-SVN: r277604

gcc/ChangeLog
gcc/ipa-prop.c

index 618197d..db26d1b 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-30  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-prop.c (update_jump_functions_after_inlining):
+       Watch for missing summaries.
+
 2019-10-30  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/65930
index 5e70395..637c7ae 100644 (file)
@@ -2660,6 +2660,11 @@ update_jump_functions_after_inlining (struct cgraph_edge *cs,
   for (i = 0; i < count; i++)
     {
       struct ipa_jump_func *dst = ipa_get_ith_jump_func (args, i);
+      if (!top)
+       {
+         ipa_set_jf_unknown (dst);
+         continue;
+       }
       class ipa_polymorphic_call_context *dst_ctx
        = ipa_get_ith_polymorhic_call_context (args, i);