OSDN Git Service

* function.c (assign_parms): Fix thinko for struct value arg.
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Dec 1995 19:05:20 +0000 (19:05 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Dec 1995 19:05:20 +0000 (19:05 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10897 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/function.c

index d1e2859..5624dac 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);