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