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
|
@ -182,7 +182,7 @@ impl<'a> LastSeenMap<'a> {
|
|||
Expr::UnionAtIndex { structure, .. } => {
|
||||
self.set_last_seen(*structure, stmt);
|
||||
}
|
||||
Expr::UnionFieldPtrAtIndex { structure, .. } => {
|
||||
Expr::GetElementPointer { structure, .. } => {
|
||||
self.set_last_seen(*structure, stmt);
|
||||
}
|
||||
Expr::Array { elems, .. } => {
|
||||
|
@ -849,14 +849,14 @@ trait Backend<'a> {
|
|||
} => {
|
||||
self.load_union_at_index(sym, structure, *tag_id, *index, union_layout);
|
||||
}
|
||||
Expr::UnionFieldPtrAtIndex {
|
||||
Expr::GetElementPointer {
|
||||
structure,
|
||||
union_layout,
|
||||
index,
|
||||
indices,
|
||||
..
|
||||
} => {
|
||||
debug_assert!(index.len() >= 2);
|
||||
self.load_union_field_ptr_at_index(sym, structure, index[0] as u16, index[1], union_layout);
|
||||
debug_assert!(indices.len() >= 2);
|
||||
self.load_union_field_ptr_at_index(sym, structure, indices[0] as u16, indices[1], union_layout);
|
||||
}
|
||||
Expr::GetTagId {
|
||||
structure,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue