Commit cbb4e4ca by Jan Hubicka Committed by Jan Hubicka

re PR ipa/82256 (clones created by create_version_clone_with_body are not…

re PR ipa/82256 (clones created by create_version_clone_with_body are not observable to insertion hooks)


	PR ipa/82256
	patch by PaX Team
	* cgraphclones.c (cgraph_node::create_version_clone_with_body):
	Fix call of call_cgraph_insertion_hooks.

From-SVN: r256853
parent 8ca07d92
2018-01-18 Jan Hubicka <hubicka@ucw.cz>
PR ipa/82256
patch by PaX Team
* cgraphclones.c (cgraph_node::create_version_clone_with_body):
Fix call of call_cgraph_insertion_hooks.
2018-01-18 Martin Sebor <msebor@redhat.com> 2018-01-18 Martin Sebor <msebor@redhat.com>
* doc/invoke.texi (-Wclass-memaccess): Tweak text. * doc/invoke.texi (-Wclass-memaccess): Tweak text.
......
...@@ -1007,7 +1007,7 @@ cgraph_node::create_version_clone_with_body ...@@ -1007,7 +1007,7 @@ cgraph_node::create_version_clone_with_body
/* Update the call_expr on the edges to call the new version node. */ /* Update the call_expr on the edges to call the new version node. */
update_call_expr (new_version_node); update_call_expr (new_version_node);
symtab->call_cgraph_insertion_hooks (this); symtab->call_cgraph_insertion_hooks (new_version_node);
return new_version_node; return new_version_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