diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-22 16:33:29 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-22 16:33:29 +0000 |
commit | 9be0994b272f2966853c21033230588220787614 (patch) | |
tree | e5b4dc738ff917bc2beb4913fcf0b6839e024f26 /gcc/cgraphclones.c | |
parent | a95d3a28130403ba1bed70d2375f7d7452d4bb02 (diff) | |
download | gcc-9be0994b272f2966853c21033230588220787614.tar.gz |
2014-04-22 Martin Jambor <mjambor@suse.cz>
* cgraphclones.c (cgraph_function_versioning): Copy
ipa_transforms_to_apply instead of asserting it is empty.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209650 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphclones.c')
-rw-r--r-- | gcc/cgraphclones.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index cd2d73d1c94..48b5379f216 100644 --- a/gcc/cgraphclones.c +++ b/gcc/cgraphclones.c @@ -974,7 +974,9 @@ cgraph_function_versioning (struct cgraph_node *old_version_node, cgraph_copy_node_for_versioning (old_version_node, new_decl, redirect_callers, bbs_to_copy); - gcc_assert (!old_version_node->ipa_transforms_to_apply.exists ()); + if (old_version_node->ipa_transforms_to_apply.exists ()) + new_version_node->ipa_transforms_to_apply + = old_version_node->ipa_transforms_to_apply.copy (); /* Copy the OLD_VERSION_NODE function tree to the new version. */ tree_function_versioning (old_decl, new_decl, tree_map, false, args_to_skip, skip_return, bbs_to_copy, new_entry_block); |