+2014-09-24 Jan Hubicka <hubicka@ucw.cz>
+
+ * ipa-devirt.c (possible_polymorphic_call_targets): Remove
+ forgotten debug output; canonicalize querries more wtih LTO.
+
2014-09-24 Jan Hubicka <hubicka@ucw.cz>
* cgraph.h (class ipa_polymorphic_call_context): Move here from
if ((context.outer_type || context.speculative_outer_type)
&& !context.restrict_to_inner_class (otr_type))
{
- fprintf (stderr, "Invalid\n");
if (completep)
*completep = true;
if (cache_token)
}
}
+ if (in_lto_p)
+ {
+ if (context.outer_type != otr_type)
+ context.outer_type
+ = get_odr_type (context.outer_type, true)->type;
+ if (context.speculative_outer_type)
+ context.speculative_outer_type
+ = get_odr_type (context.speculative_outer_type, true)->type;
+ }
+
/* Lookup cached answer. */
key.type = type;
key.otr_token = otr_token;