2011-08-18 Peter Collingbourne <peter@pcc.me.uk>

* expr.c (expand_invoke) Use the type of the method rewrite
	target.

From-SVN: r177862
This commit is contained in:
Peter Collingbourne 2011-08-18 14:47:32 +00:00 committed by Tom Tromey
parent f44157f84b
commit 901ebcdf97
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-08-18 Peter Collingbourne <peter@pcc.me.uk>
* expr.c (expand_invoke) Use the type of the method rewrite
target.
2011-08-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* jcf-dump.c (print_constant): Cast first frexp arg.

View File

@ -2544,12 +2544,12 @@ expand_invoke (int opcode, int method_ref_index, int nargs ATTRIBUTE_UNUSED)
return;
}
method_type = TREE_TYPE (method);
arg_list = pop_arguments (method_type);
arg_list = pop_arguments (TREE_TYPE (method));
flush_quick_stack ();
maybe_rewrite_invocation (&method, &arg_list, &method_signature,
&special);
method_type = TREE_TYPE (method);
func = NULL_TREE;
if (opcode == OPCODE_invokestatic)