More comments for List.reverse

This commit is contained in:
Chad Stearns 2020-07-03 15:14:21 -04:00
parent d66cf913a9
commit 9147661e02

View File

@ -1647,10 +1647,13 @@ fn call_with_args<'a, 'ctx, 'env>(
builder.build_store(start_alloca, next_index);
let list_ptr = load_list_ptr(builder, wrapper_struct, ptr_type);
// The pointer to the element in the input list
let elem_ptr = unsafe {
builder.build_in_bounds_gep(list_ptr, &[curr_index], "load_index")
};
// The pointer to the element in the reversed list
let reverse_elem_ptr = unsafe {
builder.build_in_bounds_gep(
reversed_list_ptr,