* ipa-devirt.c (set_type_binfo): New function.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Jun 2014 18:26:12 +0000 (18:26 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Jun 2014 18:26:12 +0000 (18:26 +0000)
commit978216d1f8b1fd9b58fc1d1b011fc9c36d7fd3ac
treecc45d33f98617ef4730134a0e803d45a3e94ce98
parentdfd2e19a57f80e71aa7c50ac78195c6f9b4dc414
* ipa-devirt.c (set_type_binfo): New function.
(add_type_duplicate): Use it.
(get_odr_type): Sanity check that binfos points to main variants.
(get_class_context): Be sure the context's outer_type is main variant.
(contains_type_p): Walk main variant.
(get_polymorphic_call_info_for_decl): Set outer_type to be main variant.
(get_polymorphic_call_info): Likewise.
(possible_polymorphic_call_targets): Sanity check that we operate on main
variant.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212107 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-devirt.c