summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-sccvn.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-02 15:33:29 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-02 15:33:29 +0000
commit07958fba47598a2dc099f54d14ba0c70bff6cbf3 (patch)
tree8a8f050d3da137043c2ba31803682d442cd92117 /gcc/tree-ssa-sccvn.c
parenta7404a5ec11ecd83d9f2ab0c8465284d6a6dc176 (diff)
downloadgcc-07958fba47598a2dc099f54d14ba0c70bff6cbf3.tar.gz
2009-06-02 Richard Guenther <rguenther@suse.de>
* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE for field decls. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148086 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-sccvn.c')
-rw-r--r--gcc/tree-ssa-sccvn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c
index 4ee4e39afcd..3a4415c5759 100644
--- a/gcc/tree-ssa-sccvn.c
+++ b/gcc/tree-ssa-sccvn.c
@@ -555,7 +555,7 @@ copy_reference_ops_from_ref (tree ref, VEC(vn_reference_op_s, heap) **result)
&& integer_zerop (DECL_FIELD_OFFSET (temp.op0))
&& integer_zerop (DECL_FIELD_BIT_OFFSET (temp.op0))
&& host_integerp (TYPE_SIZE (TREE_TYPE (temp.op0)), 0))
- temp.op0 = TYPE_SIZE (TREE_TYPE (temp.op0));
+ temp.op0 = DECL_SIZE (temp.op0);
break;
case ARRAY_RANGE_REF:
case ARRAY_REF: