diff mbox series

Fix call of edge insertions hooks when cloning

Message ID 20180118162812.GA95926@kam.mff.cuni.cz
State New
Headers show
Series Fix call of edge insertions hooks when cloning | expand

Commit Message

Jan Hubicka Jan. 18, 2018, 4:28 p.m. UTC
Hi,
this patch was attached to the PR for a while.  I have regtested it and comitted.

Honza
diff mbox series

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 256850)
+++ ChangeLog	(working copy)
@@ -1,5 +1,12 @@ 
 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  Jan Hubicka  <hubicka@ucw.cz>
+
 	PR ipa/83619
 	* cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Update edge
 	frequencies.
Index: cgraphclones.c
===================================================================
--- cgraphclones.c	(revision 256849)
+++ cgraphclones.c	(working copy)
@@ -1007,7 +1007,7 @@  cgraph_node::create_version_clone_with_b
   /* Update the call_expr on the edges to call the 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;
 }