aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2015-07-27 19:36:40 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2015-07-27 19:36:40 +0000
commit28ee8b98ea8208dff1b1b4b54ae966d0666aec70 (patch)
tree800b329a76f6730ca6c8f610558e92b3b7a39fe9 /gcc
parentf2afe6dd93ff0f07eabd85716ab767701c33e4f0 (diff)
downloadgcc-28ee8b98ea8208dff1b1b4b54ae966d0666aec70.zip
gcc-28ee8b98ea8208dff1b1b4b54ae966d0666aec70.tar.gz
gcc-28ee8b98ea8208dff1b1b4b54ae966d0666aec70.tar.bz2
* ipa-devirt.c (types_same_for_odr): Fix typo.
From-SVN: r226266
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/ipa-devirt.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c8a2600..4ec512f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
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)