diff options
| author | bors <bors@rust-lang.org> | 2025-06-30 18:47:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-06-30 18:47:06 +0000 |
| commit | f26e58023071e71636a3c72ac3a2bf89b1f76706 (patch) | |
| tree | 977f28b66426e32e5c19291e11a28ed8ef9481a9 /compiler/rustc_codegen_gcc/src/context.rs | |
| parent | c65dccabacdfd6c8a7f7439eba13422fdd89b91e (diff) | |
| parent | 666934ac54b6732907820be6421dd525d4ace3e8 (diff) | |
| download | rust-f26e58023071e71636a3c72ac3a2bf89b1f76706.tar.gz rust-f26e58023071e71636a3c72ac3a2bf89b1f76706.zip | |
Auto merge of #143239 - GuillaumeGomez:subtree-update_cg_gcc_2025-06-30, r=GuillaumeGomez
GCC backend subtree update cc `@antoyo` r? ghost
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/context.rs')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/context.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_codegen_gcc/src/context.rs b/compiler/rustc_codegen_gcc/src/context.rs index 1d029811dfe..665cf22ddba 100644 --- a/compiler/rustc_codegen_gcc/src/context.rs +++ b/compiler/rustc_codegen_gcc/src/context.rs @@ -124,14 +124,6 @@ pub struct CodegenCx<'gcc, 'tcx> { pub pointee_infos: RefCell<FxHashMap<(Ty<'tcx>, Size), Option<PointeeInfo>>>, - /// NOTE: a hack is used because the rustc API is not suitable to libgccjit and as such, - /// `const_undef()` returns struct as pointer so that they can later be assigned a value (in - /// e.g. Builder::insert_value). - /// As such, this set remembers which of these pointers were returned by this function so that - /// they can be dereferenced later. - /// FIXME(antoyo): fix the rustc API to avoid having this hack. - pub structs_as_pointer: RefCell<FxHashSet<RValue<'gcc>>>, - #[cfg(feature = "master")] pub cleanup_blocks: RefCell<FxHashSet<Block<'gcc>>>, /// The alignment of a u128/i128 type. @@ -304,7 +296,6 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> { #[cfg(feature = "master")] rust_try_fn: Cell::new(None), pointee_infos: Default::default(), - structs_as_pointer: Default::default(), #[cfg(feature = "master")] cleanup_blocks: Default::default(), }; |
