diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-03-09 21:19:34 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-03-09 21:19:34 +0100 |
commit | 9112885a6da43eef107fa3ac6262abbb9d5e1717 (patch) | |
tree | 8b08ba52daf2b1e59d32778499cae0db9442867b | |
parent | a2f259ef04b104e6ee9770b2d4c11c93195654ad (diff) | |
download | gcc-9112885a6da43eef107fa3ac6262abbb9d5e1717.zip gcc-9112885a6da43eef107fa3ac6262abbb9d5e1717.tar.gz gcc-9112885a6da43eef107fa3ac6262abbb9d5e1717.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ipa-devirt.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a45e282..968cb90 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index a3feb88..c9d153c 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -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; } |