objc-act.c (encode_method_prototype): Pass types, not PARM_DECLs, to int_size_in_bytes.

* objc/objc-act.c (encode_method_prototype): Pass types, not
	PARM_DECLs, to int_size_in_bytes.

From-SVN: r32611
This commit is contained in:
Mark Mitchell 2000-03-17 21:44:43 +00:00 committed by Mark Mitchell
parent fa9a44e815
commit f1fd8077fd
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-03-17 Mark Mitchell <mark@codesourcery.com>
* objc/objc-act.c (encode_method_prototype): Pass types, not
PARM_DECLs, to int_size_in_bytes.
Fri Mar 17 11:51:34 2000 Jim Wilson <wilson@cygnus.com>
* config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.

View File

@ -2836,7 +2836,7 @@ encode_method_prototype (method_decl, func_decl)
parms = TREE_CHAIN (parms))
{
HOST_WIDE_INT parm_end = (forwarding_offset (parms)
+ int_size_in_bytes (parms));
+ int_size_in_bytes (TREE_TYPE (parms)));
if (!offset_is_register && max_parm_end < parm_end)
max_parm_end = parm_end;