IPA: Avoid segfault in devirtualization_time_bonus (PR 93223)
authorMartin Jambor <mjambor@suse.cz>
Mon, 13 Jan 2020 18:13:46 +0000 (19:13 +0100)
committerMartin Jambor <mjambor@suse.cz>
Mon, 13 Jan 2020 18:13:46 +0000 (19:13 +0100)
commit8472660b98a31b32b7d030c2cdc4d41d326364d5
tree2307143e7fadf723fa137a74f02112cdd0213faa
parent69dc042f91c70458ffb6e7b147f093799cee2100
IPA: Avoid segfault in devirtualization_time_bonus (PR 93223)

2020-01-13  Martin Jambor  <mjambor@suse.cz>

PR ipa/93223
* ipa-cp.c (devirtualization_time_bonus): Check whether isummary is
NULL.

testsuite/
* g++.dg/ipa/pr93223.C: New test.
gcc/ipa-cp.c
gcc/testsuite/g++.dg/ipa/pr93223.C [new file with mode: 0644]