diff --git a/cranelift/interpreter/src/step.rs b/cranelift/interpreter/src/step.rs index 2df9888e64..2c3313af1a 100644 --- a/cranelift/interpreter/src/step.rs +++ b/cranelift/interpreter/src/step.rs @@ -685,8 +685,8 @@ where } else { let lanes = extractlanes(&arg(0)?, ctrl_ty.lane_type())? .into_iter() - .map(|lane| lane.count_ones().unwrap()) - .collect::>(); + .map(|lane| lane.count_ones()) + .collect::>>()?; vectorizelanes(&lanes, ctrl_ty)? }; assign(count)