From 9112885a6da43eef107fa3ac6262abbb9d5e1717 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 9 Mar 2015 21:19:34 +0100 Subject: =?UTF-8?q?re=20PR=20lto/65361=20(LTO:=20tree=20check:=20expected?= =?UTF-8?q?=20tree=20that=20contains=20=E2=80=98decl=20minimal=E2=80=99=20?= =?UTF-8?q?structure,=20have=20=E2=80=98tree=5Fbinfo=E2=80=99=20in=20add?= =?UTF-8?q?=5Ftype=5Fduplicate,=20at=20ipa-devirt.c:1509)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- gcc/ipa-devirt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/ipa-devirt.c') 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; } -- cgit v1.1