aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lambda.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2018-03-07 16:04:18 -0500
committerJason Merrill <jason@gcc.gnu.org>2018-03-07 16:04:18 -0500
commit68ad1bf7d08dc8189822d68f72610b6b917fc48d (patch)
tree8b0543de41823257bb455e6cdfe52c7a6d57af69 /gcc/cp/lambda.c
parent335b7b5ad22ced0e2d4af7a3002a727caafbad02 (diff)
downloadgcc-68ad1bf7d08dc8189822d68f72610b6b917fc48d.zip
gcc-68ad1bf7d08dc8189822d68f72610b6b917fc48d.tar.gz
gcc-68ad1bf7d08dc8189822d68f72610b6b917fc48d.tar.bz2
lambda.c (is_capture_proxy_with_ref): Remove.
* lambda.c (is_capture_proxy_with_ref): Remove. * constexpr.c, expr.c, cp-tree.h, semantics.c: Adjust. From-SVN: r258341
Diffstat (limited to 'gcc/cp/lambda.c')
-rw-r--r--gcc/cp/lambda.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c
index 345b210..094979e 100644
--- a/gcc/cp/lambda.c
+++ b/gcc/cp/lambda.c
@@ -291,24 +291,13 @@ is_normal_capture_proxy (tree decl)
return DECL_NORMAL_CAPTURE_P (val);
}
-/* Returns true iff DECL is a capture proxy for which we can use
- DECL_CAPTURED_VARIABLE. In effect, this is a normal proxy other than a
- nested capture of a function parameter pack. */
-
-bool
-is_capture_proxy_with_ref (tree var)
-{
- return (is_normal_capture_proxy (var) && DECL_LANG_SPECIFIC (var)
- && DECL_CAPTURED_VARIABLE (var));
-}
-
/* VAR is a capture proxy created by build_capture_proxy; add it to the
current function, which is the operator() for the appropriate lambda. */
void
insert_capture_proxy (tree var)
{
- if (is_capture_proxy_with_ref (var))
+ if (is_normal_capture_proxy (var))
{
tree cap = DECL_CAPTURED_VARIABLE (var);
if (CHECKING_P)