mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
rename to GetElementPointer, index -> indices
This commit is contained in:
parent
90223022af
commit
9c21ac1388
12 changed files with 49 additions and 49 deletions
|
@ -1436,15 +1436,15 @@ fn expr_spec<'a>(
|
|||
builder.add_get_tuple_field(block, variant_id, index)
|
||||
}
|
||||
},
|
||||
UnionFieldPtrAtIndex {
|
||||
index,
|
||||
GetElementPointer {
|
||||
indices,
|
||||
structure,
|
||||
union_layout,
|
||||
..
|
||||
} => {
|
||||
debug_assert!(index.len() >= 2);
|
||||
let tag_id = index[0] as u32;
|
||||
let index = index[1];
|
||||
debug_assert!(indices.len() >= 2);
|
||||
let tag_id = indices[0] as u32;
|
||||
let index = indices[1];
|
||||
let tag_value_id = env.symbols[structure];
|
||||
|
||||
let type_name_bytes = recursive_tag_union_name_bytes(union_layout).as_bytes();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue