diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2013-03-29 23:12:33 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-03-29 23:12:33 +0000 |
commit | 5950480cd0d48752ca3e11e07a4f5a1d312873b7 (patch) | |
tree | 714993ebba404ae533f6c9bec5cfc205476c613d /gcc/cp/call.c | |
parent | 60f97ac8596d65a73164e2967e73404b99534f92 (diff) | |
download | gcc-5950480cd0d48752ca3e11e07a4f5a1d312873b7.zip gcc-5950480cd0d48752ca3e11e07a4f5a1d312873b7.tar.gz gcc-5950480cd0d48752ca3e11e07a4f5a1d312873b7.tar.bz2 |
call.c (build_op_call_1): Use TYPE_PTRFN_P and TYPE_REFFN_P.
2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
* call.c (build_op_call_1): Use TYPE_PTRFN_P and TYPE_REFFN_P.
From-SVN: r197253
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 1c368ca..5df6b47 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -4082,13 +4082,10 @@ build_op_call_1 (tree obj, vec<tree, va_gc> **args, tsubst_flags_t complain) tree fns = TREE_VALUE (convs); tree totype = TREE_TYPE (convs); - if ((TYPE_PTR_P (totype) - && TREE_CODE (TREE_TYPE (totype)) == FUNCTION_TYPE) + if (TYPE_PTRFN_P (totype) + || TYPE_REFFN_P (totype) || (TREE_CODE (totype) == REFERENCE_TYPE - && TREE_CODE (TREE_TYPE (totype)) == FUNCTION_TYPE) - || (TREE_CODE (totype) == REFERENCE_TYPE - && TYPE_PTR_P (TREE_TYPE (totype)) - && TREE_CODE (TREE_TYPE (TREE_TYPE (totype))) == FUNCTION_TYPE)) + && TYPE_PTRFN_P (TREE_TYPE (totype)))) for (; fns; fns = OVL_NEXT (fns)) { tree fn = OVL_CURRENT (fns); |