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.cc | |
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.cc')
-rw-r--r-- | gcc/rust/backend/rust-compile.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-compile.cc b/gcc/rust/backend/rust-compile.cc index b0447af..2299ddb 100644 --- a/gcc/rust/backend/rust-compile.cc +++ b/gcc/rust/backend/rust-compile.cc @@ -387,8 +387,7 @@ HIRCompileBase::coerce_to_dyn_object (tree compiled_ref, rust_assert (ok); resulting_dyn_object_ref - = ctx->get_backend ()->address_expression (resulting_dyn_object_ref, - locus); + = address_expression (resulting_dyn_object_ref, locus); } return resulting_dyn_object_ref; } |