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