Avoid segfault when doing IPA-VRP but not IPA-CP (PR 93015)
authorMartin Jambor <mjambor@suse.cz>
Sat, 21 Dec 2019 11:25:05 +0000 (12:25 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Sat, 21 Dec 2019 11:25:05 +0000 (12:25 +0100)
commita09ccc22459c565814f79f96586fe4ad083fe4eb
tree9e8b5559f1eb904b23922771a3ec0c00f5b1ab6c
parent7ef6cab9b54e828eb4570f7e59c6a72132e4e102
Avoid segfault when doing IPA-VRP but not IPA-CP (PR 93015)

2019-12-21  Martin Jambor  <mjambor@suse.cz>

PR ipa/93015
* ipa-cp.c (ipcp_store_vr_results): Check that info exists

testsuite/
* gcc.dg/lto/pr93015_0.c: New test.

From-SVN: r279695
gcc/ChangeLog
gcc/ipa-cp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr93015_0.c [new file with mode: 0644]