]> gcc.gnu.org Git - gcc.git/commitdiff
tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE consistently.
authorRichard Guenther <rguenther@suse.de>
Wed, 3 Jun 2009 09:54:09 +0000 (09:54 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 3 Jun 2009 09:54:09 +0000 (09:54 +0000)
2009-06-03  Richard Guenther  <rguenther@suse.de>

* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
consistently.

From-SVN: r148120

gcc/ChangeLog
gcc/tree-ssa-sccvn.c

index 5a524b4ad4c0578d8dc25e46a687a25be9295811..b289d6c2df988c1a42166bd3c8064df3a775accd 100644 (file)
@@ -1,3 +1,8 @@
+2009-06-03  Richard Guenther  <rguenther@suse.de>
+
+       * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
+       consistently.
+
 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
 
        * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
index 3a4415c5759be85df7b0042fbed7401a1fddbce9..03fea751feb698e739b6439f1a412c6528945485 100644 (file)
@@ -554,7 +554,7 @@ copy_reference_ops_from_ref (tree ref, VEC(vn_reference_op_s, heap) **result)
              && TREE_CODE (DECL_CONTEXT (temp.op0)) == UNION_TYPE
              && integer_zerop (DECL_FIELD_OFFSET (temp.op0))
              && integer_zerop (DECL_FIELD_BIT_OFFSET (temp.op0))
-             && host_integerp (TYPE_SIZE (TREE_TYPE (temp.op0)), 0))
+             && host_integerp (DECL_SIZE (temp.op0), 0))
            temp.op0 = DECL_SIZE (temp.op0);
          break;
        case ARRAY_RANGE_REF:
This page took 0.176195 seconds and 5 git commands to generate.