diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-21 14:34:58 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-21 14:34:58 +0000 |
commit | 114763433144f198619afe44f82a1e1a735fd975 (patch) | |
tree | b7250dedbfc34a37e874e771b58ad2229c079a5a /gcc/tree.c | |
parent | 57f33c2a3764487f5a56f983c52cff7d6140c67d (diff) | |
download | gcc-114763433144f198619afe44f82a1e1a735fd975.tar.gz |
2010-10-21 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/45875
* tree.c (get_binfo_at_offset): Remove initial zero offset test.
* testsuite/g++.dg/ipa/pr45875.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165780 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index 6d1b5a430c7..48279ebc181 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -10893,9 +10893,6 @@ get_binfo_at_offset (tree binfo, HOST_WIDE_INT offset, tree expected_type) { tree type; - if (offset == 0) - return binfo; - type = TREE_TYPE (binfo); while (offset > 0) { |