Hi,
this patch fixes another place we may have missing argument summary.
Here the situation is that the call site being inlined has no jump
functions while function which is being inlines has another call with
jump function.  This can validly happen when we inline into functions
with indirect inlining and ipa-cp disabled but I am not 100% why it
happens i.e. during Firefox builds.  Martin, do you have any ideas?

Honza

        * ipa-prop.c (update_jump_functions_after_inlining):
        Watch for missing summaries.
Index: ipa-prop.c
===================================================================
--- ipa-prop.c  (revision 277573)
+++ ipa-prop.c  (working copy)
@@ -2660,6 +2660,11 @@ update_jump_functions_after_inlining (st
   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);
 

Reply via email to