remove tag_id in favor of index

This commit is contained in:
HajagosNorbert 2023-11-13 14:58:31 +01:00
parent 347431d1df
commit 90223022af
No known key found for this signature in database
GPG key ID: 807F4444870DB673
8 changed files with 32 additions and 33 deletions

View file

@ -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,
)
}