This .into_iter() call is equivalent to .iter() and will not move the array.

This commit is contained in:
Nick Lewycky 2019-07-02 16:05:10 -07:00
parent fdc13563b8
commit bb30434392

View File

@ -4198,7 +4198,7 @@ impl FunctionCodeGenerator<CodegenError> for LLVMFunctionCodeGenerator {
.into_vector_value();
let mask = VectorType::const_vector(
lanes
.into_iter()
.iter()
.map(|l| intrinsics.i32_ty.const_int((*l).into(), false))
.collect::<Vec<IntValue>>()
.as_slice(),