diff options
author | Jason Merrill <jason@redhat.com> | 2018-03-07 16:04:18 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2018-03-07 16:04:18 -0500 |
commit | 68ad1bf7d08dc8189822d68f72610b6b917fc48d (patch) | |
tree | 8b0543de41823257bb455e6cdfe52c7a6d57af69 /gcc/cp/expr.c | |
parent | 335b7b5ad22ced0e2d4af7a3002a727caafbad02 (diff) | |
download | gcc-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/expr.c')
-rw-r--r-- | gcc/cp/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c index b2c8cfa..2e67986 100644 --- a/gcc/cp/expr.c +++ b/gcc/cp/expr.c @@ -111,7 +111,7 @@ mark_use (tree expr, bool rvalue_p, bool read_p, { case VAR_DECL: case PARM_DECL: - if (rvalue_p && is_capture_proxy_with_ref (expr)) + if (rvalue_p && is_normal_capture_proxy (expr)) { /* Look through capture by copy. */ tree cap = DECL_CAPTURED_VARIABLE (expr); @@ -154,7 +154,7 @@ mark_use (tree expr, bool rvalue_p, bool read_p, { /* Try to look through the reference. */ tree ref = TREE_OPERAND (expr, 0); - if (rvalue_p && is_capture_proxy_with_ref (ref)) + if (rvalue_p && is_normal_capture_proxy (ref)) { /* Look through capture by reference. */ tree cap = DECL_CAPTURED_VARIABLE (ref); |