index to slice of indicies

This commit is contained in:
HajagosNorbert 2023-11-13 13:56:05 +01:00
parent 1c1231bc11
commit 347431d1df
No known key found for this signature in database
GPG key ID: 807F4444870DB673
7 changed files with 41 additions and 23 deletions

View file

@ -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!(),