Fix bug in List.walkRight accumulator types

This commit is contained in:
Pit Capitain 2020-10-29 16:31:07 +01:00
parent c8e1937ebe
commit 3f91bd4b23

View file

@ -788,8 +788,7 @@ pub fn list_walk_right<'a, 'ctx, 'env>(
let new_current = call_site_value let new_current = call_site_value
.try_as_basic_value() .try_as_basic_value()
.left() .left()
.unwrap_or_else(|| panic!("LLVM error: Invalid call by pointer.")) .unwrap_or_else(|| panic!("LLVM error: Invalid call by pointer."));
.into_int_value();
builder.build_store(accum_alloca, new_current); builder.build_store(accum_alloca, new_current);
}; };