mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
remove tag_id in favor of index
This commit is contained in:
parent
347431d1df
commit
90223022af
8 changed files with 32 additions and 33 deletions
|
@ -907,12 +907,11 @@ impl<'a> TrmcEnv<'a> {
|
|||
reuse: None,
|
||||
};
|
||||
|
||||
let index = vec![in env.arena; recursive_field_index as u64].into_bump_slice();
|
||||
let index = vec![in env.arena; cons_info.tag_id as u64, recursive_field_index as u64].into_bump_slice();
|
||||
|
||||
let let_tag = |next| Stmt::Let(*symbol, tag_expr, *layout, next);
|
||||
let get_reference_expr = Expr::UnionFieldPtrAtIndex {
|
||||
structure: *symbol,
|
||||
tag_id: cons_info.tag_id,
|
||||
union_layout: cons_info.tag_layout,
|
||||
index,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue