diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-10-24 18:04:01 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-10-24 18:04:01 +0200 |
commit | 86287716e8edba8da03305250e02e23eedc0d754 (patch) | |
tree | 4162746b9bc8ce44af52f51250d517ce50e09dc2 /gcc/cp/cxx-pretty-print.c | |
parent | a3f6007cbc84242c088097e46602a65f9654a349 (diff) | |
download | gcc-86287716e8edba8da03305250e02e23eedc0d754.zip gcc-86287716e8edba8da03305250e02e23eedc0d754.tar.gz gcc-86287716e8edba8da03305250e02e23eedc0d754.tar.bz2 |
cxx-pretty-print.c (pp_cxx_check_constraint): Use VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
* cxx-pretty-print.c (pp_cxx_check_constraint): Use VAR_P (x)
instead of TREE_CODE (x) == VAR_DECL.
* constraint.cc (get_concept_definition): Likewise.
(finish_shorthand_constraint): Likewise.
* init.c (warn_placement_new_too_small): Likewise.
* cp-gimplify.c (cp_genericize_r): Likewise.
From-SVN: r241480
Diffstat (limited to 'gcc/cp/cxx-pretty-print.c')
-rw-r--r-- | gcc/cp/cxx-pretty-print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cxx-pretty-print.c b/gcc/cp/cxx-pretty-print.c index 5157fab..8c701ff 100644 --- a/gcc/cp/cxx-pretty-print.c +++ b/gcc/cp/cxx-pretty-print.c @@ -2788,7 +2788,7 @@ pp_cxx_check_constraint (cxx_pretty_printer *pp, tree t) tree args = CHECK_CONSTR_ARGS (t); tree id = build_nt (TEMPLATE_ID_EXPR, tmpl, args); - if (TREE_CODE (decl) == VAR_DECL) + if (VAR_P (decl)) pp->expression (id); else if (TREE_CODE (decl) == FUNCTION_DECL) { |