Use edge->indirect_unknown_callee in cgraph_edge::make_direct (PR ipa/89330).
authorMartin Liska <mliska@suse.cz>
Tue, 30 Jul 2019 14:52:29 +0000 (16:52 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 30 Jul 2019 14:52:29 +0000 (14:52 +0000)
commitd9c425fb659c7df40eddf66349d846ed0cf63fda
tree6e73746cebe43a2a5bc692e8e69a6dad7c452f8e
parent0e5b369ef15294d10ee8efa432bbb3d6822d065b
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
gcc/ChangeLog
gcc/cgraph.c