fix(llvm-backend) No need to enumerate items in this iterator.

This commit is contained in:
Ivan Enderlin
2019-03-29 10:06:31 +01:00
parent 20378de0e7
commit 00e4b25111

View File

@ -190,7 +190,7 @@ fn parse_function(
let param_len = locals.len();
let mut local_idx = 0;
for (index, local) in locals_reader.into_iter().enumerate() {
for local in locals_reader.into_iter() {
let (count, ty) = local?;
let wasmer_ty = type_to_type(ty)?;
let ty = type_to_llvm(intrinsics, wasmer_ty);