aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorPer Bothner <bothner@gcc.gnu.org>1995-12-29 11:05:20 -0800
committerPer Bothner <bothner@gcc.gnu.org>1995-12-29 11:05:20 -0800
commitf9f29478ede81b8248f8768cf27201e9e7421ecd (patch)
treeea6d7f4c6ec2875edaae38494cca452adcb77b1d /gcc/function.c
parent0a00070d66853f8945ef6253e95e0755caa8a987 (diff)
downloadgcc-f9f29478ede81b8248f8768cf27201e9e7421ecd.zip
gcc-f9f29478ede81b8248f8768cf27201e9e7421ecd.tar.gz
gcc-f9f29478ede81b8248f8768cf27201e9e7421ecd.tar.bz2
* function.c (assign_parms): Fix thinko for struct value arg.
From-SVN: r10897
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index d1e2859..5624dac 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -3240,7 +3240,7 @@ assign_parms (fndecl, second_time)
&& ! current_function_returns_pcc_struct
&& struct_value_incoming_rtx == 0)
{
- tree type = build_pointer_type (fntype);
+ tree type = build_pointer_type (TREE_TYPE (fntype));
function_result_decl = build_decl (PARM_DECL, NULL_TREE, type);