cgraphclones.c (cgraph_function_versioning): Copy ipa_transforms_to_apply instead of asserting it is empty.
2014-04-22 Martin Jambor <mjambor@suse.cz> * cgraphclones.c (cgraph_function_versioning): Copy ipa_transforms_to_apply instead of asserting it is empty. From-SVN: r209650
This commit is contained in:
parent
130a78598c
commit
c6d43074d8
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-04-22 Martin Jambor <mjambor@suse.cz>
|
||||
|
||||
* cgraphclones.c (cgraph_function_versioning): Copy
|
||||
ipa_transforms_to_apply instead of asserting it is empty.
|
||||
|
||||
2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR target/60868
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue