Skip to content

Commit 0bb9bdf

Browse files
committed
Use value_lane instead of value_field in simd/llvm.rs
1 parent c4c393c commit 0bb9bdf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/intrinsics/llvm.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ pub(crate) fn codegen_llvm_intrinsic_call<'tcx>(
2929
let mut res = fx.bcx.ins().iconst(types::I32, 0);
3030

3131
for lane in (0..lane_count).rev() {
32-
let a_lane =
33-
a.value_field(fx, mir::Field::new(lane.try_into().unwrap())).load_scalar(fx);
32+
let a_lane = a.value_lane(fx, lane).load_scalar(fx);
3433

3534
// cast float to int
3635
let a_lane = match lane_ty {

0 commit comments

Comments
 (0)