Renamed some variables that were copy and pasted

This commit is contained in:
Chad Stearns 2020-08-04 21:48:53 -04:00
parent ba1feb9330
commit f4075adf00

View file

@ -1751,22 +1751,22 @@ fn list_join<'a, 'ctx, 'env>(
builder.build_store(dest_elem_ptr_alloca, next_dest_elem_ptr); builder.build_store(dest_elem_ptr_alloca, next_dest_elem_ptr);
let outer_loop_end_cond = builder.build_int_compare( let inner_loop_end_cond = builder.build_int_compare(
IntPredicate::ULT, IntPredicate::ULT,
next_index, next_index,
inner_list_len, inner_list_len,
"loopcond", "loopcond",
); );
let after_outer_loop_bb = let after_inner_loop_bb =
ctx.append_basic_block(parent, "after_outer_loop"); ctx.append_basic_block(parent, "after_inner_loop");
builder.build_conditional_branch( builder.build_conditional_branch(
outer_loop_end_cond, inner_loop_end_cond,
inner_loop_bb, inner_loop_bb,
after_outer_loop_bb, after_inner_loop_bb,
); );
builder.position_at_end(after_outer_loop_bb); builder.position_at_end(after_inner_loop_bb);
} }
// #index < outer_list_len // #index < outer_list_len