mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
index to slice of indicies
This commit is contained in:
parent
1c1231bc11
commit
347431d1df
7 changed files with 41 additions and 23 deletions
|
@ -855,7 +855,8 @@ trait Backend<'a> {
|
|||
union_layout,
|
||||
index,
|
||||
} => {
|
||||
self.load_union_field_ptr_at_index(sym, structure, *tag_id, *index, union_layout);
|
||||
debug_assert_ne!(index.len(), 0);
|
||||
self.load_union_field_ptr_at_index(sym, structure, *tag_id, index[0], union_layout);
|
||||
}
|
||||
Expr::GetTagId {
|
||||
structure,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue