tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE for field decls.

2009-06-02  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
	for field decls.

From-SVN: r148086
This commit is contained in:
Richard Guenther 2009-06-02 15:33:29 +00:00 committed by Richard Biener
parent beb7e0305d
commit 69596c692d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-06-02 Richard Guenther <rguenther@suse.de>
* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
for field decls.
2009-06-02 Alexandre Oliva <aoliva@redhat.com>
* cfgexpand.c (gimple_expand_cfg): Discard the source location

View File

@ -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: