mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
add reuse info to normal Tag ir constructor
This commit is contained in:
parent
c4b0a2ec29
commit
463f739c06
8 changed files with 94 additions and 16 deletions
|
@ -639,8 +639,11 @@ impl<'a> TrmcEnv<'a> {
|
|||
tag_layout,
|
||||
tag_id,
|
||||
arguments,
|
||||
reuse,
|
||||
} = expr
|
||||
{
|
||||
debug_assert!(reuse.is_none());
|
||||
|
||||
let info = ConstructorInfo {
|
||||
tag_layout: *tag_layout,
|
||||
tag_id: *tag_id,
|
||||
|
@ -910,6 +913,7 @@ impl<'a> TrmcEnv<'a> {
|
|||
tag_layout: cons_info.tag_layout,
|
||||
tag_id: cons_info.tag_id,
|
||||
arguments: arguments.into_bump_slice(),
|
||||
reuse: None,
|
||||
};
|
||||
|
||||
let let_tag = |next| Stmt::Let(*symbol, tag_expr, *layout, next);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue