This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch] PR 56534


Hi,

On 03/06/2013 06:32 PM, Jason Merrill wrote:
On 03/06/2013 11:42 AM, Paolo Carlini wrote:
+    /* NULL_TREE or error_mark_node (if decl is error_mark_node).  */
+    type = TREE_TYPE (decl);

I'd prefer to avoid taking the TREE_TYPE of some random thing. If what we want is NULL_TREE or error_mark_node, let's write that rather than expect to get it from TREE_TYPE.
I hear you. Then since type is already initialized to NULL_TREE anyway, we can do the below. I'm finishing testing it.

Paolo.

////////////////////////

Attachment: patch_56534_4
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]