c++: Small pt.c cleanups
authorNathan Sidwell <nathan@acm.org>
Tue, 3 Nov 2020 18:05:04 +0000 (10:05 -0800)
committerNathan Sidwell <nathan@acm.org>
Tue, 3 Nov 2020 18:07:21 +0000 (10:07 -0800)
commit5b01425ec2019f822f9eb628ef0932f6deff44f9
tree1d4f5301e70c1d0fcd911b510b18b78a6d773cce
parent8bd9a00f4349ebcd65223e3dcdfe83867e417287
c++: Small pt.c cleanups

Now I know about VAR_OR_FUNCTION_DECL_P I found a place to use it.
Also positively checking for a function_decl is clearer than
negatively checking for things that are not.

gcc/cp/
* pt.c (primary_template_specialization_p): Use
VAR_OR_FUNCTION_DECL_P.
(tsubst_template_decl): Check for FUNCTION_DECL, not !TYPE && !VAR
for registering a specialization.
gcc/cp/pt.c