Properly use TYPE_MAIN_VARIANT in warn_types_mismatch.
authorMartin Liska <mliska@suse.cz>
Thu, 28 Nov 2019 20:56:23 +0000 (21:56 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 28 Nov 2019 20:56:23 +0000 (20:56 +0000)
commit2fb2966c19ab7a5c1a17b5f32de1def2110e7191
treecfa7c4246183a52f02e8d2a457cffb16b5618c21
parent3a95e31b34da8d7b01744f1f5958541b0671df5f
Properly use TYPE_MAIN_VARIANT in warn_types_mismatch.

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

PR lto/92609
* ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
consistently.
2019-11-28  Martin Liska  <mliska@suse.cz>

PR lto/92609
* g++.dg/lto/pr92609_0.C: New test.
* g++.dg/lto/pr92609_1.C: New test.

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