Commit c6d43074 by Martin Jambor Committed by Martin Jambor

cgraphclones.c (cgraph_function_versioning): Copy ipa_transforms_to_apply…

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
parent 130a7859
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);
......
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