Commit 8eda074c by Jason Merrill

(init_function_start): Use

        POINTER_TYPE_P rather than checking the type against POINTER_TYPE
        (to include references).

From-SVN: r8458
parent 2df330f4
...@@ -4761,7 +4761,7 @@ init_function_start (subr, filename, line) ...@@ -4761,7 +4761,7 @@ init_function_start (subr, filename, line)
warning ("function returns an aggregate"); warning ("function returns an aggregate");
current_function_returns_pointer current_function_returns_pointer
= (TREE_CODE (TREE_TYPE (DECL_RESULT (subr))) == POINTER_TYPE); = POINTER_TYPE_P (TREE_TYPE (DECL_RESULT (subr)));
/* Indicate that we need to distinguish between the return value of the /* Indicate that we need to distinguish between the return value of the
present function and the return value of a function being called. */ present function and the return value of a function being called. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment