aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r--gcc/cp/expr.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c
index 160a946..630f078 100644
--- a/gcc/cp/expr.c
+++ b/gcc/cp/expr.c
@@ -51,11 +51,8 @@ cplus_expand_constant (tree cst)
member = PTRMEM_CST_MEMBER (cst);
if (TREE_CODE (member) == FIELD_DECL)
- {
- /* Find the offset for the field. */
- tree offset = byte_position (member);
- cst = fold (build1 (NOP_EXPR, type, offset));
- }
+ /* Find the offset for the field. */
+ cst = fold (build_nop (type, byte_position (member)));
else
{
tree delta;