add new Expr variants

This commit is contained in:
Folkert 2022-03-07 21:13:48 +01:00
parent 3510bad1d5
commit b3b3b8790c
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
7 changed files with 80 additions and 0 deletions

View file

@ -1126,6 +1126,8 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
..
} => build_tag(env, scope, union_layout, *tag_id, arguments, None, parent),
ExprBox { .. } | ExprUnbox { .. } => todo!(),
Reset { symbol, .. } => {
let (tag_ptr, layout) = load_symbol_and_layout(scope, symbol);
let tag_ptr = tag_ptr.into_pointer_value();