diff options
author | Jason Merrill <jason@redhat.com> | 2016-07-08 17:32:12 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2016-07-08 17:32:12 -0400 |
commit | bb19d4af73a6e29dde443976f3119d01a5491f8d (patch) | |
tree | d5508f42446209aae1176835282fb10a983960e3 /gcc/cp/cvt.c | |
parent | c3edc63382ef1856d8ba86fed77342b50007ddd3 (diff) | |
download | gcc-bb19d4af73a6e29dde443976f3119d01a5491f8d.zip gcc-bb19d4af73a6e29dde443976f3119d01a5491f8d.tar.gz gcc-bb19d4af73a6e29dde443976f3119d01a5491f8d.tar.bz2 |
Rename lvalue_p to obvalue_p.
* tree.c (obvalue_p): Rename from lvalue_p.
(lvalue_p): Define for c-common.
* call.c, cp-tree.h, cvt.c, init.c: Adjust.
* typeck.c: Adjust.
(cp_build_addr_expr_1): Remove obsolete code.
From-SVN: r238182
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r-- | gcc/cp/cvt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index 2e2bac7..9dd383e 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -330,7 +330,7 @@ build_up_reference (tree type, tree arg, int flags, tree decl, cp_finish_decl (arg, targ, /*init_const_expr_p=*/false, NULL_TREE, LOOKUP_ONLYCONVERTING|DIRECT_BIND); } - else if (!(flags & DIRECT_BIND) && ! lvalue_p (arg)) + else if (!(flags & DIRECT_BIND) && ! obvalue_p (arg)) return get_target_expr_sfinae (arg, complain); /* If we had a way to wrap this up, and say, if we ever needed its @@ -473,7 +473,7 @@ convert_to_reference (tree reftype, tree expr, int convtype, return build_up_reference (reftype, expr, flags, decl, complain); } - else if ((convtype & CONV_REINTERPRET) && lvalue_p (expr)) + else if ((convtype & CONV_REINTERPRET) && obvalue_p (expr)) { /* When casting an lvalue to a reference type, just convert into a pointer to the new type and deference it. This is allowed |