Add a few missing checks that IPA_NODE_REF is not NULL (PR 92454)
authorMartin Jambor <jamborm@gcc.gnu.org>
Wed, 13 Nov 2019 14:12:58 +0000 (15:12 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 13 Nov 2019 14:12:58 +0000 (15:12 +0100)
commit3c4fa8a8562d3788bb763ca5c8fb1563b8d4eb1a
tree11dab553096d09c1384c5f74989cbf201c06130a
parenta5e2beb9474fc0bd4210926d75ec1101a3f11412
Add a few missing checks that IPA_NODE_REF is not NULL (PR 92454)

2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
    Martin Jambor  <mjambor@suse.cz>

PR ipa/92454
* ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
(identify_dead_nodes): Likewise.

testsuite/
* g++.dg/ipa/pr92454.C: New test.

From-SVN: r278142
gcc/ChangeLog
gcc/ipa-cp.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr92454.C [new file with mode: 0644]