Commit 69596c69 by Richard Guenther Committed by Richard Biener

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
parent beb7e030
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
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment