aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2009-01-16 13:20:32 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2009-01-16 13:20:32 +0000
commitc433cb14aed894dabd159e9418fe87358779b121 (patch)
tree2f99fdb6a63c40507b84805dd86c8c4c90f94c74 /gcc/function.c
parent6e0d2de7cbeacd8cd5b6121fcfaecd4f59edc1da (diff)
downloadgcc-c433cb14aed894dabd159e9418fe87358779b121.zip
gcc-c433cb14aed894dabd159e9418fe87358779b121.tar.gz
gcc-c433cb14aed894dabd159e9418fe87358779b121.tar.bz2
function.c (aggregate_value_p): Correctly extract the function type from CALL_EXPR_FN lookup.
* function.c (aggregate_value_p): Correctly extract the function type from CALL_EXPR_FN lookup. From-SVN: r143432
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 7701042..0cf4d5d 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -1848,7 +1848,7 @@ aggregate_value_p (const_tree exp, const_tree fntype)
fndecl = get_callee_fndecl (fntype);
fntype = (fndecl
? TREE_TYPE (fndecl)
- : TREE_TYPE (CALL_EXPR_FN (fntype)));
+ : TREE_TYPE (TREE_TYPE (CALL_EXPR_FN (fntype))));
break;
case FUNCTION_DECL:
fndecl = fntype;