Commit 4399cf59 by Michael Matz Committed by Michael Matz

* cgraphunit.c (assemble_thunk): Use correct return type.

From-SVN: r175294
parent 31a0c825
2011-06-22 Michael Matz <matz@suse.de>
* cgraphunit.c (assemble_thunk): Use correct return type.
2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru> 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
Dmitry Melnik <dm@ispras.ru> Dmitry Melnik <dm@ispras.ru>
......
...@@ -1581,10 +1581,11 @@ assemble_thunk (struct cgraph_node *node) ...@@ -1581,10 +1581,11 @@ assemble_thunk (struct cgraph_node *node)
{ {
const char *fnname; const char *fnname;
tree fn_block; tree fn_block;
tree restype = TREE_TYPE (TREE_TYPE (thunk_fndecl));
DECL_RESULT (thunk_fndecl) DECL_RESULT (thunk_fndecl)
= build_decl (DECL_SOURCE_LOCATION (thunk_fndecl), = build_decl (DECL_SOURCE_LOCATION (thunk_fndecl),
RESULT_DECL, 0, integer_type_node); RESULT_DECL, 0, restype);
fnname = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (thunk_fndecl)); fnname = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (thunk_fndecl));
/* The back end expects DECL_INITIAL to contain a BLOCK, so we /* The back end expects DECL_INITIAL to contain a BLOCK, so we
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment