diff options
| author | Petr Sumbera <petr.sumbera@oracle.com> | 2021-12-01 10:03:45 +0100 |
|---|---|---|
| committer | Petr Sumbera <petr.sumbera@oracle.com> | 2021-12-01 10:03:45 +0100 |
| commit | 128ceec92d04a9b4feaf55804f5e7d1f3f1dbfd2 (patch) | |
| tree | afa1955bbcb51551f1f90ee250ed5f70cab58659 /compiler/rustc_codegen_cranelift/src | |
| parent | 6414e0b5b308d3ae27da83c6a25098cc8aadc1a9 (diff) | |
| download | rust-128ceec92d04a9b4feaf55804f5e7d1f3f1dbfd2.tar.gz rust-128ceec92d04a9b4feaf55804f5e7d1f3f1dbfd2.zip | |
fix sparc64 ABI for aggregates with floating point members
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/abi/pass_mode.rs | 2 |
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 2144e7ed67a..45d49062593 100644 --- a/compiler/rustc_codegen_cranelift/src/abi/pass_mode.rs +++ b/compiler/rustc_codegen_cranelift/src/abi/pass_mode.rs @@ -71,7 +71,7 @@ fn cast_target_to_abi_params(cast: CastTarget) -> SmallVec<[AbiParam; 2]> { .prefix .iter() .flatten() - .map(|&kind| reg_to_abi_param(Reg { kind, size: cast.prefix_chunk_size })) + .map(|®| reg_to_abi_param(reg)) .chain((0..rest_count).map(|_| reg_to_abi_param(cast.rest.unit))) .collect::<SmallVec<_>>(); |
