diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2019-05-15 13:46:29 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2019-05-15 13:46:29 +0000 |
commit | d509bb8cbe97b7ac5219eecebf62f27657da3d6a (patch) | |
tree | 6975921c524cf588fe37a23689801d1c1ac46206 /gcc/cp/search.c | |
parent | 86e3947eea1619c83ac45c77ba4b3156d729c81f (diff) | |
download | gcc-d509bb8cbe97b7ac5219eecebf62f27657da3d6a.zip gcc-d509bb8cbe97b7ac5219eecebf62f27657da3d6a.tar.gz gcc-d509bb8cbe97b7ac5219eecebf62f27657da3d6a.tar.bz2 |
call.c (perform_overload_resolution, [...]): Use OVL_P; remove redundant TEMPLATE_DECL checks.
2019-05-15 Paolo Carlini <paolo.carlini@oracle.com>
* call.c (perform_overload_resolution, build_new_method_call_1):
Use OVL_P; remove redundant TEMPLATE_DECL checks.
* decl.c (grokfndecl): Likewise.
* mangle.c (write_expression): Likewise.
* parser.c (cp_parser_template_id): Likewise.
* pt.c (resolve_overloaded_unification, type_dependent_expression_p):
Likewise.
* search.c (build_baselink): Likewise.
* tree.c (is_overloaded_fn, dependent_name, maybe_get_fns): Likewise.
From-SVN: r271211
Diffstat (limited to 'gcc/cp/search.c')
-rw-r--r-- | gcc/cp/search.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/cp/search.c b/gcc/cp/search.c index 4c3fffd..dac08d4 100644 --- a/gcc/cp/search.c +++ b/gcc/cp/search.c @@ -1058,10 +1058,7 @@ build_baselink (tree binfo, tree access_binfo, tree functions, tree optype) { tree baselink; - gcc_assert (TREE_CODE (functions) == FUNCTION_DECL - || TREE_CODE (functions) == TEMPLATE_DECL - || TREE_CODE (functions) == TEMPLATE_ID_EXPR - || TREE_CODE (functions) == OVERLOAD); + gcc_assert (OVL_P (functions) || TREE_CODE (functions) == TEMPLATE_ID_EXPR); gcc_assert (!optype || TYPE_P (optype)); gcc_assert (TREE_TYPE (functions)); |