mirror of git://gcc.gnu.org/git/gcc.git
re PR lto/65361 (LTO: tree check: expected tree that contains ‘decl minimal’ structure, have ‘tree_binfo’ in add_type_duplicate, at ipa-devirt.c:1509)
PR lto/65361 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT on a TREE_BINFO, instead use BINFO_TYPE. From-SVN: r221286
This commit is contained in:
parent
a2f259ef04
commit
9112885a6d
|
|
@ -1,3 +1,9 @@
|
|||
2015-03-09 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR lto/65361
|
||||
* ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
|
||||
on a TREE_BINFO, instead use BINFO_TYPE.
|
||||
|
||||
2015-03-09 Richard Biener <rguenther@suse.de>
|
||||
|
||||
PR middle-end/65270
|
||||
|
|
|
|||
|
|
@ -1505,9 +1505,9 @@ add_type_duplicate (odr_type val, tree type)
|
|||
extra_base = BINFO_BASE_BINFO
|
||||
(TYPE_BINFO (val->type),
|
||||
BINFO_N_BASE_BINFOS (TYPE_BINFO (type)));
|
||||
inform (DECL_SOURCE_LOCATION
|
||||
(TYPE_NAME (DECL_CONTEXT (extra_base))),
|
||||
"the extra base is defined here ");
|
||||
tree extra_base_type = BINFO_TYPE (extra_base);
|
||||
inform (DECL_SOURCE_LOCATION (TYPE_NAME (extra_base_type)),
|
||||
"the extra base is defined here");
|
||||
}
|
||||
base_mismatch = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue