* ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
check.
From-SVN: r220458
+2015-02-05 Jan Hubicka <hubicka@ucw.cz>
+
+ * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
+ check.
+
2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
* config/h8300/constraints.md ("U" constraint): Use strict
{
ipcp_lattice<tree> *lat;
- if (!info->lattices)
+ if (!info->lattices
+ || idx >= ipa_get_param_count (info))
return NULL_TREE;
lat = ipa_get_scalar_lat (info, idx);
if (!lat->is_single_const ())
}
else
{
- if (!info->lattices)
+ if (!info->lattices
+ || srcidx >= ipa_get_param_count (info))
return ctx;
ipcp_lattice<ipa_polymorphic_call_context> *lat;
lat = ipa_get_poly_ctx_lat (info, srcidx);