diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-03-15 14:41:48 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-03-15 14:41:48 +0000 |
| commit | fce629d2e9eddd957411caa5fed0e1146c745bd8 (patch) | |
| tree | f539d967c8dac4932b09de113b12b5115e352849 /compiler/rustc_codegen_cranelift/src/common.rs | |
| parent | 992d154f3a84cc8abcefcf6e6cf3698e4821b506 (diff) | |
| parent | dec0daa8f6d0a0e1c702f169abb6bf3eee198c67 (diff) | |
| download | rust-fce629d2e9eddd957411caa5fed0e1146c745bd8.tar.gz rust-fce629d2e9eddd957411caa5fed0e1146c745bd8.zip | |
Merge commit 'dec0daa8f6d0a0e1c702f169abb6bf3eee198c67' into sync_cg_clif-2023-03-15
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/common.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/common.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/common.rs b/compiler/rustc_codegen_cranelift/src/common.rs index 722e2754e83..d39bf700035 100644 --- a/compiler/rustc_codegen_cranelift/src/common.rs +++ b/compiler/rustc_codegen_cranelift/src/common.rs @@ -75,7 +75,7 @@ fn clif_type_from_ty<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Option<types::Typ ty::Adt(adt_def, _) if adt_def.repr().simd() => { let (element, count) = match &tcx.layout_of(ParamEnv::reveal_all().and(ty)).unwrap().abi { - Abi::Vector { element, count } => (element.clone(), *count), + Abi::Vector { element, count } => (*element, *count), _ => unreachable!(), }; |
