From 28ee8b98ea8208dff1b1b4b54ae966d0666aec70 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Mon, 27 Jul 2015 19:36:40 +0000 Subject: * ipa-devirt.c (types_same_for_odr): Fix typo. From-SVN: r226266 --- gcc/ipa-devirt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/ipa-devirt.c') diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index b7afc3b..0a92768 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -550,7 +550,7 @@ types_same_for_odr (const_tree type1, const_tree type2, bool strict) return false; if (TREE_CODE (type1) == RECORD_TYPE && (TYPE_BINFO (type1) == NULL_TREE) - != (TYPE_BINFO (type1) == NULL_TREE)) + != (TYPE_BINFO (type2) == NULL_TREE)) return false; if (TREE_CODE (type1) == RECORD_TYPE && TYPE_BINFO (type1) && (BINFO_VTABLE (TYPE_BINFO (type1)) == NULL_TREE) -- cgit v1.1