Commit d9c425fb by Martin Liska Committed by Martin Liska

Use edge->indirect_unknown_callee in cgraph_edge::make_direct (PR ipa/89330).

2019-07-30  Martin Liska  <mliska@suse.cz>

	PR ipa/89330
	* cgraph.c (cgraph_edge::make_direct): Use
	edge->indirect_unknown_callee as edge->resolve_speculation can
	deallocate edge which is this pointer.

From-SVN: r273910
parent 0e5b369e
2019-07-30 Martin Liska <mliska@suse.cz>
PR ipa/89330
* cgraph.c (cgraph_edge::make_direct): Use
edge->indirect_unknown_callee as edge->resolve_speculation can
deallocate edge which is this pointer.
2019-07-30 Richard Biener <rguenther@suse.de> 2019-07-30 Richard Biener <rguenther@suse.de>
PR tree-optimization/91257 PR tree-optimization/91257
......
...@@ -1215,7 +1215,7 @@ cgraph_edge::make_direct (cgraph_node *callee) ...@@ -1215,7 +1215,7 @@ cgraph_edge::make_direct (cgraph_node *callee)
edge = edge->resolve_speculation (callee->decl); edge = edge->resolve_speculation (callee->decl);
/* On successful speculation just return the pre existing direct edge. */ /* On successful speculation just return the pre existing direct edge. */
if (!indirect_unknown_callee) if (!edge->indirect_unknown_callee)
return edge; return edge;
} }
......
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