diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-26 21:01:11 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-26 21:01:11 +0000 |
commit | d71f105a6aa810e8556db7a369f6d32de5bd9eeb (patch) | |
tree | 7fe8f4cca6f0dc54482b79fea615e44487b82a87 /gcc/tree.c | |
parent | 5d8940e8bb629b0888bfcea1c21b94a1f79cdd7a (diff) | |
download | gcc-d71f105a6aa810e8556db7a369f6d32de5bd9eeb.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168255 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index 26622789bf6..cc95d70bee0 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -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; |