diff options
author | Martin Jambor <mjambor@suse.cz> | 2010-12-26 22:01:11 +0100 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2010-12-26 22:01:11 +0100 |
commit | f2f044864a655b46be09310f389a1e9f11517484 (patch) | |
tree | 7fe8f4cca6f0dc54482b79fea615e44487b82a87 | |
parent | b992d9b062e5eac510573fee4e8b747606da3910 (diff) | |
download | gcc-f2f044864a655b46be09310f389a1e9f11517484.zip gcc-f2f044864a655b46be09310f389a1e9f11517484.tar.gz gcc-f2f044864a655b46be09310f389a1e9f11517484.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1c8293f..137ce3b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> * config/m68k/t-linux (M68K_MLIB_CPU): Only include 680x0 CPUs. @@ -10939,7 +10939,7 @@ lhd_gcc_personality (void) tree 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) { @@ -10947,7 +10947,7 @@ get_binfo_at_offset (tree binfo, HOST_WIDE_INT offset, tree expected_type) tree fld; int i; - if (type == expected_type) + if (TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (expected_type)) return binfo; if (offset < 0) return NULL_TREE; |