* ipa-devirt.c (types_same_for_odr): Fix typo.
authorMarek Polacek <polacek@redhat.com>
Mon, 27 Jul 2015 19:36:40 +0000 (19:36 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 27 Jul 2015 19:36:40 +0000 (19:36 +0000)
From-SVN: r226266

gcc/ChangeLog
gcc/ipa-devirt.c

index c8a2600..4ec512f 100644 (file)
@@ -1,3 +1,7 @@
+2015-07-27  Marek Polacek  <polacek@redhat.com>
+
+       * ipa-devirt.c (types_same_for_odr): Fix typo.
+
 2015-07-27  Jason Merrill  <jason@redhat.com>
 
        PR debug/66468
index b7afc3b..0a92768 100644 (file)
@@ -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)