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
+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
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;
}