diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-02-10 17:08:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-10 17:08:15 +0000 |
commit | e2823b6747b36362387e5b26e8792f06185d7de8 (patch) | |
tree | a1c1a61fd3031416ca3bc600212cd13e51f727b8 /gcc/rust/backend/rust-compile-expr.h | |
parent | f6ba472caf42db1f5f2f98b73afccf448b36c322 (diff) | |
parent | 1b487d72cd2ba46671f5a1bcc20970f2dad1b759 (diff) | |
download | gcc-e2823b6747b36362387e5b26e8792f06185d7de8.zip gcc-e2823b6747b36362387e5b26e8792f06185d7de8.tar.gz gcc-e2823b6747b36362387e5b26e8792f06185d7de8.tar.bz2 |
Merge #917
917: remove tree addressable context during type checking r=philberty a=philberty
We can reuse more C front-end code c_mark_addressable can be used instead
of trying to track TREE_ADDRESSABLE as part of type-checking. This also
pulls the GCC::Backend::address_expression to be part of the HIRCompileBase
class during code-generation.
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-expr.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.h b/gcc/rust/backend/rust-compile-expr.h index 43eff72..592d280 100644 --- a/gcc/rust/backend/rust-compile-expr.h +++ b/gcc/rust/backend/rust-compile-expr.h @@ -797,13 +797,7 @@ public: ctx->add_statement (goto_label); } - void visit (HIR::BorrowExpr &expr) override - { - tree main_expr = CompileExpr::Compile (expr.get_expr ().get (), ctx); - - translated - = ctx->get_backend ()->address_expression (main_expr, expr.get_locus ()); - } + void visit (HIR::BorrowExpr &expr) override; void visit (HIR::DereferenceExpr &expr) override; |