aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/ptree.c
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2013-03-26 20:05:55 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2013-03-26 20:05:55 +0000
commitcb6da767b099d8cb044b255b58ca34ba02e8cd38 (patch)
treef3e18bdb2050b0a57cf4c1c26efbb635fde19e95 /gcc/cp/ptree.c
parent7e10b7560160f11829aaa8b920d9cc8cf260c63b (diff)
downloadgcc-cb6da767b099d8cb044b255b58ca34ba02e8cd38.zip
gcc-cb6da767b099d8cb044b255b58ca34ba02e8cd38.tar.gz
gcc-cb6da767b099d8cb044b255b58ca34ba02e8cd38.tar.bz2
cp-gimplify.c (cp_genericize_r): Use VAR_OR_FUNCTION_DECL_P.
* cp-gimplify.c (cp_genericize_r): Use VAR_OR_FUNCTION_DECL_P. * decl.c (duplicate_decls): Likewise. (cp_finish_decl): Likewise. (check_class_member_definition_namespace): Likewise. * decl2.c (grokfield): Likewise. (decl_needed_p): Likewise. (import_export_decl): Likewise. (mark_used): Likewise. * name-lookup.c (pushdecl_maybe_friend_1): Likewise. * pt.c (push_access_scope): Likewise. (instantiate_decl): Likewise. * ptree.c (cxx_print_decl): Likewise. * repo.c (repo_emit_p): Likewise. * semantics.c (note_decl_for_pch): Likewise. * tree.c (decl_linkage): Likewise. From-SVN: r197119
Diffstat (limited to 'gcc/cp/ptree.c')
-rw-r--r--gcc/cp/ptree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c
index deba90f..f4ca003 100644
--- a/gcc/cp/ptree.c
+++ b/gcc/cp/ptree.c
@@ -63,7 +63,7 @@ cxx_print_decl (FILE *file, tree node, int indent)
&& DECL_PENDING_INLINE_INFO (node))
fprintf (file, " pending-inline-info %p",
(void *) DECL_PENDING_INLINE_INFO (node));
- if ((TREE_CODE (node) == FUNCTION_DECL || TREE_CODE (node) == VAR_DECL)
+ if (VAR_OR_FUNCTION_DECL_P (node)
&& DECL_TEMPLATE_INFO (node))
fprintf (file, " template-info %p",
(void *) DECL_TEMPLATE_INFO (node));