Fixed problem with index for loop to sum lengths of lists in outer list not initialized to zero

This commit is contained in:
Chad Stearns 2020-08-04 21:48:37 -04:00
parent 60dcad329f
commit ba1feb9330

View file

@ -1587,6 +1587,8 @@ fn list_join<'a, 'ctx, 'env>(
let list_len_sum_name = "#listslengthsum";
let list_len_sum_alloca = builder.build_alloca(ctx.i64_type(), list_len_sum_name);
builder.build_store(list_len_sum_alloca, ctx.i64_type().const_int(0, false));
// List Sum Loop
{
let index_name = "#index";