diff options
| author | Jakub Okoński <jakub@okonski.org> | 2023-12-12 13:11:59 +0100 |
|---|---|---|
| committer | Jakub Okoński <jakub@okonski.org> | 2023-12-12 13:11:59 +0100 |
| commit | 95b5a80f47fa30a594985f36eab87d1ccbd0435a (patch) | |
| tree | 640baf0cc636c29057a38730583cd630dfe95ab4 /compiler/rustc_codegen_llvm/src | |
| parent | 5b8bc568d28b2e922290c9a966b3231d0ce9398b (diff) | |
| download | rust-95b5a80f47fa30a594985f36eab87d1ccbd0435a.tar.gz rust-95b5a80f47fa30a594985f36eab87d1ccbd0435a.zip | |
Fix alignment passed down to LLVM for simd_masked_load
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/intrinsic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/intrinsic.rs b/compiler/rustc_codegen_llvm/src/intrinsic.rs index 23b424f25ba..58e68a64907 100644 --- a/compiler/rustc_codegen_llvm/src/intrinsic.rs +++ b/compiler/rustc_codegen_llvm/src/intrinsic.rs @@ -1568,7 +1568,7 @@ fn generic_simd_intrinsic<'ll, 'tcx>( // Alignment of T, must be a constant integer value: let alignment_ty = bx.type_i32(); - let alignment = bx.const_i32(bx.align_of(values_ty).bytes() as i32); + let alignment = bx.const_i32(bx.align_of(values_elem).bytes() as i32); // Truncate the mask vector to a vector of i1s: let (mask, mask_ty) = { |
