Commit cf5da2b9 by Andrew Pinski Committed by Andrew Pinski

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

2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>

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

From-SVN: r76021
parent 8582b18a
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> 2004-01-16 Andrew Haley <aph@redhat.com>
PR java/13273: PR java/13273:
......
...@@ -797,6 +797,7 @@ find_method_in_interfaces (tree searched_class, int flags, tree method_name, ...@@ -797,6 +797,7 @@ find_method_in_interfaces (tree searched_class, int flags, tree method_name,
tree child = tree child =
TREE_VEC_ELT (TYPE_BINFO_BASETYPES (searched_class), i); TREE_VEC_ELT (TYPE_BINFO_BASETYPES (searched_class), i);
tree iclass = BINFO_TYPE (child); tree iclass = BINFO_TYPE (child);
tree method;
/* If the superinterface hasn't been loaded yet, do so now. */ /* If the superinterface hasn't been loaded yet, do so now. */
if (CLASS_FROM_SOURCE_P (iclass)) if (CLASS_FROM_SOURCE_P (iclass))
...@@ -806,7 +807,7 @@ find_method_in_interfaces (tree searched_class, int flags, tree method_name, ...@@ -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 /* First, we look in ICLASS. If that doesn't work we'll
recursively look through all its superinterfaces. */ 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); signature, signature_builder);
if (method != NULL_TREE) if (method != NULL_TREE)
return method; return method;
......
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