Skip to content

Commit

Permalink
rust-analyzer: use new function in (incorrect) layout computation
Browse files Browse the repository at this point in the history
This is only to fix the build.
  • Loading branch information
workingjubilee committed Feb 20, 2025
1 parent e5c6d05 commit f964368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/rust-analyzer/crates/hir-ty/src/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ fn layout_of_simd_ty(
.size
.checked_mul(e_len, dl)
.ok_or(LayoutError::BadCalc(LayoutCalculatorError::SizeOverflow))?;
let align = dl.vector_align(size);
let align = dl.llvmlike_vector_align(size);
let size = size.align_to(align.abi);

// Compute the placement of the vector fields:
Expand Down

0 comments on commit f964368

Please sign in to comment.