OSDN Git Service

move declaration to top of block
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Dec 2012 05:13:01 +0000 (05:13 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Dec 2012 05:13:01 +0000 (05:13 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@194287 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/tree.c

index 76ce5b3..d7124ba 100644 (file)
@@ -7409,10 +7409,10 @@ build_array_type_1 (tree elt_type, tree index_type, bool shared)
 
   if (shared)
     {
+      tree old_t = t;
       hashval_t hashcode = iterative_hash_object (TYPE_HASH (elt_type), 0);
       if (index_type)
        hashcode = iterative_hash_object (TYPE_HASH (index_type), hashcode);
-      tree old_t = t;
       t = type_hash_canon (hashcode, t);
       if (t != old_t)
        /* Lay it out again in case the element type has been completed since