diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-11-03 10:05:04 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-11-03 10:07:21 -0800 |
commit | 5b01425ec2019f822f9eb628ef0932f6deff44f9 (patch) | |
tree | 1d4f5301e70c1d0fcd911b510b18b78a6d773cce /gcc/cgraphclones.c | |
parent | 8bd9a00f4349ebcd65223e3dcdfe83867e417287 (diff) | |
download | gcc-5b01425ec2019f822f9eb628ef0932f6deff44f9.zip gcc-5b01425ec2019f822f9eb628ef0932f6deff44f9.tar.gz gcc-5b01425ec2019f822f9eb628ef0932f6deff44f9.tar.bz2 |
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.
Diffstat (limited to 'gcc/cgraphclones.c')
0 files changed, 0 insertions, 0 deletions