Commit f2f04486 by Martin Jambor Committed by Martin Jambor

tree.c (get_binfo_at_offset): Use BINFO_TYPE instead of TREE_TYPE, compare…

tree.c (get_binfo_at_offset): Use BINFO_TYPE instead of TREE_TYPE, compare TYPE_MAIN_VARIANTs of types.

2010-12-26  Martin Jambor  <mjambor@suse.cz>

	* tree.c (get_binfo_at_offset): Use BINFO_TYPE instead of TREE_TYPE,
	compare TYPE_MAIN_VARIANTs of types.

From-SVN: r168255
parent b992d9b0
2010-12-26 Martin Jambor <mjambor@suse.cz>
* tree.c (get_binfo_at_offset): Use BINFO_TYPE instead of TREE_TYPE,
compare TYPE_MAIN_VARIANTs of types.
2010-12-26 Andreas Schwab <schwab@linux-m68k.org> 2010-12-26 Andreas Schwab <schwab@linux-m68k.org>
* config/m68k/t-linux (M68K_MLIB_CPU): Only include 680x0 CPUs. * config/m68k/t-linux (M68K_MLIB_CPU): Only include 680x0 CPUs.
...@@ -10939,7 +10939,7 @@ lhd_gcc_personality (void) ...@@ -10939,7 +10939,7 @@ lhd_gcc_personality (void)
tree tree
get_binfo_at_offset (tree binfo, HOST_WIDE_INT offset, tree expected_type) get_binfo_at_offset (tree binfo, HOST_WIDE_INT offset, tree expected_type)
{ {
tree type = TREE_TYPE (binfo); tree type = BINFO_TYPE (binfo);
while (true) while (true)
{ {
...@@ -10947,7 +10947,7 @@ get_binfo_at_offset (tree binfo, HOST_WIDE_INT offset, tree expected_type) ...@@ -10947,7 +10947,7 @@ get_binfo_at_offset (tree binfo, HOST_WIDE_INT offset, tree expected_type)
tree fld; tree fld;
int i; int i;
if (type == expected_type) if (TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (expected_type))
return binfo; return binfo;
if (offset < 0) if (offset < 0)
return NULL_TREE; return NULL_TREE;
......
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