summaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authormatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-22 13:59:03 +0000
committermatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-22 13:59:03 +0000
commit28b2c6a783472b0bf67190d7da37bbcda4af8686 (patch)
tree8306ed93e371cb8696ed9b0565dc2376fa3b8c12 /gcc/cgraphunit.c
parent73f2032369a54a3324d92f02b84888a5c29d43fe (diff)
downloadgcc-28b2c6a783472b0bf67190d7da37bbcda4af8686.tar.gz
* cgraphunit.c (assemble_thunk): Use correct return type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175294 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index de9bbe3edeb..eefd37226f9 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1581,10 +1581,11 @@ assemble_thunk (struct cgraph_node *node)
{
const char *fnname;
tree fn_block;
+ tree restype = TREE_TYPE (TREE_TYPE (thunk_fndecl));
DECL_RESULT (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));
/* The back end expects DECL_INITIAL to contain a BLOCK, so we