about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/abi
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-02-15 14:13:01 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-02-15 14:13:01 +0000
commit7a6206e9c4067b54b386213cbdb0ccfc527ffc8b (patch)
treef4107c5ae6f151ea95e876d5243abf75ea169b57 /compiler/rustc_codegen_cranelift/src/abi
parent8c07d140e00dfa5b0988754051d07d8a91ff01f7 (diff)
parent557ed8ebb7e981817d03c87352892c394183dd70 (diff)
downloadrust-7a6206e9c4067b54b386213cbdb0ccfc527ffc8b.tar.gz
rust-7a6206e9c4067b54b386213cbdb0ccfc527ffc8b.zip
Merge commit '557ed8ebb7e981817d03c87352892c394183dd70' into sync_cg_clif-2025-02-15
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/abi')
-rw-r--r--compiler/rustc_codegen_cranelift/src/abi/pass_mode.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/abi/pass_mode.rs b/compiler/rustc_codegen_cranelift/src/abi/pass_mode.rs
index 7594a53fc75..b28c4c9539c 100644
--- a/compiler/rustc_codegen_cranelift/src/abi/pass_mode.rs
+++ b/compiler/rustc_codegen_cranelift/src/abi/pass_mode.rs
@@ -195,7 +195,7 @@ pub(super) fn from_casted_value<'tcx>(
         // It may also be smaller for example when the type is a wrapper around an integer with a
         // larger alignment than the integer.
         std::cmp::max(abi_param_size, layout_size),
-        u32::try_from(layout.align.pref.bytes()).unwrap(),
+        u32::try_from(layout.align.abi.bytes()).unwrap(),
     );
     let mut offset = 0;
     let mut block_params_iter = block_params.iter().copied();