Commit 9112885a by Jakub Jelinek Committed by Jakub Jelinek

re PR lto/65361 (LTO: tree check: expected tree that contains ‘decl minimal’…

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
parent a2f259ef
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> 2015-03-09 Richard Biener <rguenther@suse.de>
PR middle-end/65270 PR middle-end/65270
......
...@@ -1505,9 +1505,9 @@ add_type_duplicate (odr_type val, tree type) ...@@ -1505,9 +1505,9 @@ add_type_duplicate (odr_type val, tree type)
extra_base = BINFO_BASE_BINFO extra_base = BINFO_BASE_BINFO
(TYPE_BINFO (val->type), (TYPE_BINFO (val->type),
BINFO_N_BASE_BINFOS (TYPE_BINFO (type))); BINFO_N_BASE_BINFOS (TYPE_BINFO (type)));
inform (DECL_SOURCE_LOCATION tree extra_base_type = BINFO_TYPE (extra_base);
(TYPE_NAME (DECL_CONTEXT (extra_base))), inform (DECL_SOURCE_LOCATION (TYPE_NAME (extra_base_type)),
"the extra base is defined here "); "the extra base is defined here");
} }
base_mismatch = true; base_mismatch = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment