From 7ef91cea646c4ff988abf9f9757854b634fdcc60 Mon Sep 17 00:00:00 2001 From: hubicka Date: Thu, 20 Nov 2014 06:15:03 +0000 Subject: * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217824 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ipa-polymorphic-call.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/ipa-polymorphic-call.c') diff --git a/gcc/ipa-polymorphic-call.c b/gcc/ipa-polymorphic-call.c index 452f2d26a5a..249f0d7286f 100644 --- a/gcc/ipa-polymorphic-call.c +++ b/gcc/ipa-polymorphic-call.c @@ -1307,6 +1307,7 @@ record_known_type (struct type_change_info *tci, tree type, HOST_WIDE_INT offset if (type && (offset || (TREE_CODE (type) != RECORD_TYPE + || !TYPE_BINFO (type) || !polymorphic_type_binfo_p (TYPE_BINFO (type))))) { ipa_polymorphic_call_context context; -- cgit v1.2.1