diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-04-29 12:00:43 +0000 | 
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-04-29 12:00:43 +0000 | 
| commit | a8697f95659dae497c30f5ee4b73badd271cf77d (patch) | |
| tree | 0a438b657b7dd8ef2b68629ff16be26fd873a3a0 /compiler/rustc_codegen_cranelift/src/constant.rs | |
| parent | f2299490c11b0c53ece5f6a13dd092fc9c99d264 (diff) | |
| parent | ef07e8e60f994ec014d049a95591426fb92ebb79 (diff) | |
| download | rust-a8697f95659dae497c30f5ee4b73badd271cf77d.tar.gz rust-a8697f95659dae497c30f5ee4b73badd271cf77d.zip | |
Merge commit 'ef07e8e60f994ec014d049a95591426fb92ebb79' into sync_cg_clif-2023-04-29
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/constant.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/constant.rs | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/compiler/rustc_codegen_cranelift/src/constant.rs b/compiler/rustc_codegen_cranelift/src/constant.rs index aacf37bb5b7..bf5d29c16f6 100644 --- a/compiler/rustc_codegen_cranelift/src/constant.rs +++ b/compiler/rustc_codegen_cranelift/src/constant.rs @@ -159,6 +159,8 @@ pub(crate) fn codegen_const_value<'tcx>( _ => unreachable!(), }; + // FIXME avoid this extra copy to the stack and directly write to the final + // destination let place = CPlace::new_stack_slot(fx, layout); place.to_ptr().store(fx, val, MemFlags::trusted()); place.to_cvalue(fx) | 
