mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +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
|
@ -1099,18 +1099,18 @@ impl<'a, 'r> WasmBackend<'a, 'r> {
|
|||
index,
|
||||
} => self.expr_union_at_index(*structure, *tag_id, union_layout, *index, sym),
|
||||
|
||||
Expr::UnionFieldPtrAtIndex {
|
||||
Expr::GetElementPointer {
|
||||
structure,
|
||||
union_layout,
|
||||
index,
|
||||
indices,
|
||||
..
|
||||
} => {
|
||||
debug_assert!(index.len() >= 2);
|
||||
debug_assert!(indices.len() >= 2);
|
||||
self.expr_union_field_ptr_at_index(
|
||||
*structure,
|
||||
index[0] as u16,
|
||||
indices[0] as u16,
|
||||
union_layout,
|
||||
index[1],
|
||||
indices[1],
|
||||
storage,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue