typeck.c (find_method_in_interfaces): Move variable definition up.
authorAndrew Pinski <pinskia@physics.uc.edu>
Sat, 17 Jan 2004 01:57:09 +0000 (01:57 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sat, 17 Jan 2004 01:57:09 +0000 (17:57 -0800)
2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>

        * typeck.c (find_method_in_interfaces): Move variable
        definition up.

From-SVN: r76021

gcc/java/ChangeLog
gcc/java/typeck.c

index 8cb93760ea5263a7eb9bfa0f3dc91450bdaa07da..d0e0e9270269746267a8909b26488dc69ecf48ae 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * typeck.c (find_method_in_interfaces): Move variable
+       definition up.
+
 2004-01-16  Andrew Haley  <aph@redhat.com>
 
        PR java/13273:
index dc8a8c5625594e2793e16960064d6e7c3a54573f..8b65f4360e333c2aa6ba50ef4793d6515b392501 100644 (file)
@@ -797,6 +797,7 @@ find_method_in_interfaces (tree searched_class, int flags, tree method_name,
       tree child = 
        TREE_VEC_ELT (TYPE_BINFO_BASETYPES (searched_class), i);
       tree iclass = BINFO_TYPE (child);
+      tree method;
          
       /* If the superinterface hasn't been loaded yet, do so now.  */
       if (CLASS_FROM_SOURCE_P (iclass))
@@ -806,7 +807,7 @@ find_method_in_interfaces (tree searched_class, int flags, tree method_name,
          
       /* First, we look in ICLASS.  If that doesn't work we'll
         recursively look through all its superinterfaces.  */
-      tree method = shallow_find_method (iclass, flags, method_name, 
+      method = shallow_find_method (iclass, flags, method_name, 
                                         signature, signature_builder);      
       if (method != NULL_TREE)
        return method;