Commit dd6d1ad7 by Jan Hubicka Committed by Jan Hubicka

* ipa-prop.c (ipa_edge_removal_hook): Check for bounds.

From-SVN: r158610
parent c9945504
2010-04-21 Jan Hubicka <jh@suse.cz> 2010-04-21 Jan Hubicka <jh@suse.cz>
* ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
2010-04-21 Jan Hubicka <jh@suse.cz>
* varpool.c (decide_is_variable_needed): Variable is always needed * varpool.c (decide_is_variable_needed): Variable is always needed
during ltrans. during ltrans.
......
...@@ -1260,6 +1260,10 @@ ipa_edge_removal_hook (struct cgraph_edge *cs, void *data ATTRIBUTE_UNUSED) ...@@ -1260,6 +1260,10 @@ ipa_edge_removal_hook (struct cgraph_edge *cs, void *data ATTRIBUTE_UNUSED)
static void static void
ipa_node_removal_hook (struct cgraph_node *node, void *data ATTRIBUTE_UNUSED) ipa_node_removal_hook (struct cgraph_node *node, void *data ATTRIBUTE_UNUSED)
{ {
/* During IPA-CP updating we can be called on not-yet analyze clones. */
if (VEC_length (ipa_node_params_t, ipa_node_params_vector)
<= (unsigned)node->uid)
return;
ipa_free_node_params_substructures (IPA_NODE_REF (node)); ipa_free_node_params_substructures (IPA_NODE_REF (node));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment