aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <merrill@gnu.org>1994-11-16 00:45:41 +0000
committerJason Merrill <merrill@gnu.org>1994-11-16 00:45:41 +0000
commit8eda074c873d2e7c9625c1bc4837296f0bcf5c52 (patch)
treea3b1c2bccf58100f05f2520cb91a86753047bd41
parent2df330f4d2e125c5c6d80036c7881c32fbb41e8c (diff)
downloadgcc-8eda074c873d2e7c9625c1bc4837296f0bcf5c52.zip
gcc-8eda074c873d2e7c9625c1bc4837296f0bcf5c52.tar.gz
gcc-8eda074c873d2e7c9625c1bc4837296f0bcf5c52.tar.bz2
(init_function_start): Use
POINTER_TYPE_P rather than checking the type against POINTER_TYPE (to include references). From-SVN: r8458
-rw-r--r--gcc/function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 1a206a9..3f482af 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -4761,7 +4761,7 @@ init_function_start (subr, filename, line)
warning ("function returns an aggregate");
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
present function and the return value of a function being called. */