mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
remove tag_id in favor of index
This commit is contained in:
parent
347431d1df
commit
90223022af
8 changed files with 32 additions and 33 deletions
|
@ -851,12 +851,12 @@ trait Backend<'a> {
|
|||
}
|
||||
Expr::UnionFieldPtrAtIndex {
|
||||
structure,
|
||||
tag_id,
|
||||
union_layout,
|
||||
index,
|
||||
..
|
||||
} => {
|
||||
debug_assert_ne!(index.len(), 0);
|
||||
self.load_union_field_ptr_at_index(sym, structure, *tag_id, index[0], union_layout);
|
||||
debug_assert!(index.len() >= 2);
|
||||
self.load_union_field_ptr_at_index(sym, structure, index[0] as u16, index[1], union_layout);
|
||||
}
|
||||
Expr::GetTagId {
|
||||
structure,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue