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
This commit is contained in:
Richard Earnshaw 2009-01-16 13:20:32 +00:00 committed by Richard Earnshaw
parent 6e0d2de7cb
commit c433cb14ae
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-01-16 Richard Earnshaw <rearnsha@arm.com>
* function.c (aggregate_value_p): Correctly extract the function
type from CALL_EXPR_FN lookup.
2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
* config/picochip/picochip.c (picochip_override_options): Revert

View File

@ -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;