OSDN Git Service

* expr.c (pop_arguments): Fix use of undeclared variable.
authorfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 May 2010 01:15:43 +0000 (01:15 +0000)
committerfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 May 2010 01:15:43 +0000 (01:15 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159555 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/expr.c

index 3a0afa2..c26e950 100644 (file)
@@ -1,5 +1,9 @@
 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
 
+       * expr.c (pop_arguments): Fix use of undeclared variable.
+
+2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
+
        * expr.c (expand_java_multianewarray): Use build_call_vec instead of
        build_call_list.
        (pop_arguments): Return a VEC instead of a tree.  Take a method type
index 5eacd64..177a038 100644 (file)
@@ -1949,7 +1949,7 @@ pop_arguments (tree method_type)
       VEC_safe_push (tree, gc, args, type);
     }
 
-  arity = VEC_length (tree, typestack);
+  arity = VEC_length (tree, args);
 
   while (arity--)
     {