* function.c (assign_parms): Fix thinko for struct value arg.
authorPer Bothner <bothner@gcc.gnu.org>
Fri, 29 Dec 1995 19:05:20 +0000 (11:05 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Fri, 29 Dec 1995 19:05:20 +0000 (11:05 -0800)
From-SVN: r10897

gcc/function.c

index d1e2859b704b6796019c466cb7a4fd2896b6e466..5624dac6b54fb2f2c0fc19f5ae1765bff4f3a636 100644 (file)
@@ -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);