]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
function.c (aggregate_value_p): Correctly extract the function type from CALL_EXPR_FN...
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 16 Jan 2009 13:20:32 +0000 (13:20 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Fri, 16 Jan 2009 13:20:32 +0000 (13:20 +0000)
* function.c (aggregate_value_p): Correctly extract the function
type from CALL_EXPR_FN lookup.

From-SVN: r143432

gcc/ChangeLog
gcc/function.c

index 9076ad2a425efd8dfe8f72505227947b9383acf2..c40950ff1de0383889a1570095724e5a01e61f63 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 7701042c77d286be238746fa9fba2bd5897150d5..0cf4d5d000021632b6bf519b2a51e953e766bb14 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;