aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/init.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2016-07-08 17:32:12 -0400
committerJason Merrill <jason@gcc.gnu.org>2016-07-08 17:32:12 -0400
commitbb19d4af73a6e29dde443976f3119d01a5491f8d (patch)
treed5508f42446209aae1176835282fb10a983960e3 /gcc/cp/init.c
parentc3edc63382ef1856d8ba86fed77342b50007ddd3 (diff)
downloadgcc-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/init.c')
-rw-r--r--gcc/cp/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index a71c21a..69ff61d 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -3332,7 +3332,7 @@ build_new_1 (vec<tree, va_gc> **placement, tree type, tree nelts,
rval = build2 (COMPOUND_EXPR, TREE_TYPE (rval), init_preeval_expr, rval);
/* A new-expression is never an lvalue. */
- gcc_assert (!lvalue_p (rval));
+ gcc_assert (!obvalue_p (rval));
return convert (pointer_type, rval);
}