OSDN Git Service

* function.c (aggregate_value_p): Correctly extract the function
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Jan 2009 13:20:32 +0000 (13:20 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Jan 2009 13:20:32 +0000 (13:20 +0000)
type from CALL_EXPR_FN lookup.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143432 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/function.c

index 9076ad2..c40950f 100644 (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
index 7701042..0cf4d5d 100644 (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;