add CoerceToTagId

This commit is contained in:
Folkert 2021-06-20 21:23:50 +02:00
parent 454241a04f
commit e1af2eb7d0
6 changed files with 47 additions and 1 deletions

View file

@ -1596,6 +1596,11 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
EmptyArray => empty_polymorphic_list(env),
Array { elem_layout, elems } => list_literal(env, scope, elem_layout, elems),
RuntimeErrorFunction(_) => todo!(),
CoerceToTagId { .. } => {
// we will do more here in the future
env.context.struct_type(&[], false).const_zero().into()
}
GetTagId {
structure,
union_layout,