Check for TYPE_NAME in type_with_linkage_p.
authorMartin Liska <mliska@suse.cz>
Fri, 29 Nov 2019 09:03:25 +0000 (10:03 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 29 Nov 2019 09:03:25 +0000 (09:03 +0000)
commitefeeda757691b13e716c6681e7f6af5f85927e92
tree3bfd1d32ae0f121f4e250b339637500eeb449da8
parentd5e82c9f686f6c8e2feabfe753258f9fc13d980f
Check for TYPE_NAME in type_with_linkage_p.

2019-11-29  Martin Liska  <mliska@suse.cz>

PR lto/91574
* ipa-devirt.c (types_same_for_odr): Check for existence
of TYPE_NAMEs first.
2019-11-29  Martin Liska  <mliska@suse.cz>

PR lto/91574
* g++.dg/lto/pr91574_0.C: New test.

From-SVN: r278829
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr91574_0.C [new file with mode: 0644]