From 2fc233b73189dd0664fb1cb95865fc5a14396e1f Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 25 Jul 2019 15:42:25 +0200 Subject: [PATCH] * ipa-devirt.c (add_type_duplicate): Fix return value. From-SVN: r273800 --- gcc/ChangeLog | 4 ++++ gcc/ipa-devirt.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 87a4ecd1d22..35fd8474919 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-07-23 Jan Hubicka + + * ipa-devirt.c (add_type_duplicate): Fix return value. + 2019-07-25 Richard Biener * tree-vrp.c (extract_range_from_multiplicative_op): Add diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index 95e2d950fe9..391a6501ada 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)); -- 2.30.2