aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-07-25 15:42:25 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2019-07-25 13:42:25 +0000
commit2fc233b73189dd0664fb1cb95865fc5a14396e1f (patch)
tree029204d05f5062b5fd208f53f21654f41a086084 /gcc
parente2cfa983c31fa7886f496a47feb8714297ca0063 (diff)
downloadgcc-2fc233b73189dd0664fb1cb95865fc5a14396e1f.zip
gcc-2fc233b73189dd0664fb1cb95865fc5a14396e1f.tar.gz
gcc-2fc233b73189dd0664fb1cb95865fc5a14396e1f.tar.bz2
* ipa-devirt.c (add_type_duplicate): Fix return value.
From-SVN: r273800
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 87a4ecd..35fd847 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2019-07-23 Jan Hubicka <hubicka@ucw.cz>
+
+ * ipa-devirt.c (add_type_duplicate): Fix return value.
+
2019-07-25 Richard Biener <rguenther@suse.de>
* tree-vrp.c (extract_range_from_multiplicative_op): Add
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index 95e2d95..391a650 100644
--- a/gcc/ipa-devirt.c
+++ b/gcc/ipa-devirt.c
@@ -1613,7 +1613,7 @@ add_type_duplicate (odr_type val, tree type)
val->types_set->add (type);
if (!odr_hash)
- return NULL;
+ return false;
gcc_checking_assert (can_be_name_hashed_p (type)
&& can_be_name_hashed_p (val->type));