diff options
author | Jason Merrill <jason@redhat.com> | 2003-11-14 17:48:18 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2003-11-14 17:48:18 -0500 |
commit | 7f3a6a92f507df4ed682d6b30be109da68e5a730 (patch) | |
tree | f14fcd8aa6c1aaaaecf763fc1ebfeb897fe695c2 /gcc/function.c | |
parent | 5c859e1034742b0d98e732b9691add29dfb70376 (diff) | |
download | gcc-7f3a6a92f507df4ed682d6b30be109da68e5a730.zip gcc-7f3a6a92f507df4ed682d6b30be109da68e5a730.tar.gz gcc-7f3a6a92f507df4ed682d6b30be109da68e5a730.tar.bz2 |
function.c (assign_parms): Use TREE_TYPE to determine the real type of the argument object.
* function.c (assign_parms): Use TREE_TYPE to determine the real
type of the argument object.
From-SVN: r73623
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/function.c b/gcc/function.c index f191aec..04d3424 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -4947,13 +4947,13 @@ assign_parms (tree fndecl) else if (passed_pointer && FUNCTION_ARG_CALLEE_COPIES (args_so_far, - TYPE_MODE (DECL_ARG_TYPE (parm)), - DECL_ARG_TYPE (parm), + TYPE_MODE (TREE_TYPE (passed_type)), + TREE_TYPE (passed_type), named_arg) - && ! TREE_ADDRESSABLE (DECL_ARG_TYPE (parm))) + && ! TREE_ADDRESSABLE (TREE_TYPE (passed_type))) { rtx copy; - tree type = DECL_ARG_TYPE (parm); + tree type = TREE_TYPE (passed_type); /* This sequence may involve a library call perhaps clobbering registers that haven't been copied to pseudos yet. */ |