diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-09-05 15:31:14 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-09-05 15:31:14 +0000 |
| commit | 0bb9bdf8e337b494c5ea385a309425c46f6aa383 (patch) | |
| tree | 7730d2285e7fade18bec76ff7581511695647227 | |
| parent | c4c393c78ede150fbdf693e23689d472fc54bfa6 (diff) | |
| download | rust-0bb9bdf8e337b494c5ea385a309425c46f6aa383.tar.gz rust-0bb9bdf8e337b494c5ea385a309425c46f6aa383.zip | |
Use value_lane instead of value_field in simd/llvm.rs
| -rw-r--r-- | src/intrinsics/llvm.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intrinsics/llvm.rs b/src/intrinsics/llvm.rs index 598c13e757e..783d426c30b 100644 --- a/src/intrinsics/llvm.rs +++ b/src/intrinsics/llvm.rs @@ -29,8 +29,7 @@ pub(crate) fn codegen_llvm_intrinsic_call<'tcx>( let mut res = fx.bcx.ins().iconst(types::I32, 0); for lane in (0..lane_count).rev() { - let a_lane = - a.value_field(fx, mir::Field::new(lane.try_into().unwrap())).load_scalar(fx); + let a_lane = a.value_lane(fx, lane).load_scalar(fx); // cast float to int let a_lane = match lane_ty { |
