diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-11-20 07:15:03 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-11-20 06:15:03 +0000 |
commit | 1be0e58d3003aa8a780d229bf38b0e4a61928b9e (patch) | |
tree | b027bc052b062a295ed4e82de7214afde37561ce /gcc/ipa-utils.h | |
parent | 1b5695e6100dec3f7c1e86ba5594471987cda466 (diff) | |
download | gcc-1be0e58d3003aa8a780d229bf38b0e4a61928b9e.zip gcc-1be0e58d3003aa8a780d229bf38b0e4a61928b9e.tar.gz gcc-1be0e58d3003aa8a780d229bf38b0e4a61928b9e.tar.bz2 |
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
Diffstat (limited to 'gcc/ipa-utils.h')
-rw-r--r-- | gcc/ipa-utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |