OSDN Git Service

(init_function_start): Use
authormerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Nov 1994 00:45:41 +0000 (00:45 +0000)
committermerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Nov 1994 00:45:41 +0000 (00:45 +0000)
        POINTER_TYPE_P rather than checking the type against POINTER_TYPE
        (to include references).

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

gcc/function.c

index 1a206a9..3f482af 100644 (file)
@@ -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.  */