From 1be0e58d3003aa8a780d229bf38b0e4a61928b9e Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 20 Nov 2014 07:15:03 +0100 Subject: tree.c (free_lang_data_in_type): If BINFO has no important information in it, set it to NULL. * tree.c (free_lang_data_in_type): If BINFO has no important information in it, set it to NULL. (get_binfo_at_offset): Do not walk fields, only bases. * ipa-utils.h (polymorphic_type_binfo_p): Be ready for BINFO_TYPE to be NULL. * ipa-polymorphic-call.c (record_known_type): Likewise. From-SVN: r217824 --- gcc/ipa-utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/ipa-utils.h') diff --git a/gcc/ipa-utils.h b/gcc/ipa-utils.h index e285722..12c6edb 100644 --- a/gcc/ipa-utils.h +++ b/gcc/ipa-utils.h @@ -183,7 +183,8 @@ polymorphic_type_binfo_p (const_tree binfo) /* See if BINFO's type has an virtual table associtated with it. Check is defensive because of Java FE produces BINFOs without BINFO_TYPE set. */ - return BINFO_TYPE (binfo) && BINFO_VTABLE (TYPE_BINFO (BINFO_TYPE (binfo))); + return (BINFO_TYPE (binfo) && TYPE_BINFO (BINFO_TYPE (binfo)) + && BINFO_VTABLE (TYPE_BINFO (BINFO_TYPE (binfo)))); } #endif /* GCC_IPA_UTILS_H */ -- cgit v1.1