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 618197d1fbe9f34e45012bc754744a85ed0834c8..db26d1b88c99a18e847a861834b320fc0f06ca23 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 5e703955f01a98a9f9b9feb4d872ac71af412e13..637c7ae5d02d2ba4e654ef147f101f3bcd3c6eb1 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);