diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-28 16:43:09 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-28 16:43:09 +0000 |
commit | 16ac1565a5e2535909827ed5a0ce26a9fd6944cd (patch) | |
tree | 855aef18d9ae91237af2a2724bd22e3eed43d2cb /gcc/ipa-cp.c | |
parent | 1b268210a00e886e5d0fd161a86c661c2918e4dc (diff) | |
download | gcc-16ac1565a5e2535909827ed5a0ce26a9fd6944cd.tar.gz |
2010-06-28 Martin Jambor <mjambor@suse.cz>
* ipa-cp.c (ipcp_init_cloned_node): Replace calls to
ipa_check_create_node_params and ipa_initialize_node_params with
checking asserts they are not necessary.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161502 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r-- | gcc/ipa-cp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 78dccf85b04..8f9937320a1 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -172,8 +172,11 @@ static void ipcp_init_cloned_node (struct cgraph_node *orig_node, struct cgraph_node *new_node) { - ipa_check_create_node_params (); - ipa_initialize_node_params (new_node); + gcc_checking_assert (ipa_node_params_vector + && (VEC_length (ipa_node_params_t, + ipa_node_params_vector) + > (unsigned) cgraph_max_uid)); + gcc_checking_assert (IPA_NODE_REF (new_node)->params); IPA_NODE_REF (new_node)->ipcp_orig_node = orig_node; } |