aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-devirt.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-04-18 22:05:10 +0200
committerMartin Liska <marxin@gcc.gnu.org>2018-04-18 20:05:10 +0000
commit5722ce75437dd48d2cbaf8ad8cc12f6c4e7dfaba (patch)
tree29f0656cd05994bfb603266f4d10242ddf7c4852 /gcc/ipa-devirt.c
parent8953574fa9a0398611d76a9ff2b8a3bc981f9c68 (diff)
downloadgcc-5722ce75437dd48d2cbaf8ad8cc12f6c4e7dfaba.zip
gcc-5722ce75437dd48d2cbaf8ad8cc12f6c4e7dfaba.tar.gz
gcc-5722ce75437dd48d2cbaf8ad8cc12f6c4e7dfaba.tar.bz2
Revert r25841.
2018-04-18 Martin Liska <mliska@suse.cz> Revert 2018-03-13 Eric Botcazou <ebotcazou@adacore.com> PR lto/84805 * ipa-devirt.c (odr_subtypes_equivalent_p): Do not get the ODR type of incomplete types. From-SVN: r259477
Diffstat (limited to 'gcc/ipa-devirt.c')
-rw-r--r--gcc/ipa-devirt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index bdda7d6..bec0c01 100644
--- a/gcc/ipa-devirt.c
+++ b/gcc/ipa-devirt.c
@@ -690,8 +690,6 @@ odr_subtypes_equivalent_p (tree t1, tree t2,
therefore which call will report the ODR violation, if any. */
if (!odr_type_p (t1)
|| !odr_type_p (t2)
- || !COMPLETE_TYPE_P (t1)
- || !COMPLETE_TYPE_P (t2)
|| (!get_odr_type (t1, true)->odr_violated
&& !get_odr_type (t2, true)->odr_violated))
return true;