summaryrefslogtreecommitdiff
path: root/gcc/cp/init.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2016-07-08 21:32:12 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2016-07-08 21:32:12 +0000
commit049132bc36a904428298d094fc4094dbcf62bcfb (patch)
treed5508f42446209aae1176835282fb10a983960e3 /gcc/cp/init.c
parentf3250f7c20f0b26271ee87b2ebe4a339bc18a640 (diff)
downloadgcc-049132bc36a904428298d094fc4094dbcf62bcfb.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238182 138bc75d-0d04-0410-961f-82ee72b054a4
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 a71c21aed90..69ff61d72ad 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);
}