diff options
author | Richard Henderson <rth@redhat.com> | 2004-08-30 11:59:18 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-08-30 11:59:18 -0700 |
commit | 442c8e31f0c70473592cbb205ca2d3ebc5cb69ae (patch) | |
tree | b8588d80580c2127c7180b14671067529060b82c /gcc/cp/class.c | |
parent | 5cc200fcf0b382bb7509f26eb8bd9cc6538e255d (diff) | |
download | gcc-442c8e31f0c70473592cbb205ca2d3ebc5cb69ae.tar.gz |
class.c (build_base_path): Use build_address directly.
* class.c (build_base_path): Use build_address directly.
* typeck.c (build_unary_op): Don't lower &a.b to pointer
arithmetic directly.
* typeck2.c (store_init_value): Don't assume !TREE_CONSTANT
means !initializer_constant_valid_p.
* g++.dg/other/offsetof1.C: Use __builtin_offsetof.
From-SVN: r86795
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r-- | gcc/cp/class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 9ef15dcca98..272c4d6a0ff 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -319,7 +319,7 @@ build_base_path (enum tree_code code, expr = build_indirect_ref (expr, NULL); expr = build_simple_base_path (expr, binfo); if (want_pointer) - expr = build_unary_op (ADDR_EXPR, expr, 0); + expr = build_address (expr); target_type = TREE_TYPE (expr); goto out; } |