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
|
@ -2003,15 +2003,15 @@ pub(crate) fn build_exp_expr<'a, 'ctx>(
|
|||
}
|
||||
}
|
||||
|
||||
UnionFieldPtrAtIndex {
|
||||
GetElementPointer {
|
||||
structure,
|
||||
index,
|
||||
indices,
|
||||
union_layout,
|
||||
..
|
||||
} => {
|
||||
debug_assert!(index.len() >= 2);
|
||||
let tag_id = index[0];
|
||||
let index = index[1] as usize;
|
||||
debug_assert!(indices.len() >= 2);
|
||||
let tag_id = indices[0];
|
||||
let index = indices[1] as usize;
|
||||
// cast the argument bytes into the desired shape for this tag
|
||||
let argument = scope.load_symbol(structure);
|
||||
let ret_repr = layout_interner.get_repr(layout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue