Remove tag_name from ResetReuse

This commit is contained in:
Ayaz Hafiz 2022-07-03 15:10:00 -04:00
parent 09c3c4030d
commit 2d169bf518
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 10 additions and 27 deletions

View file

@ -14,9 +14,7 @@ use roc_mono::ir::{
BranchInfo, CallType, Expr, JoinPointId, ListLiteralElement, Literal, Param, Proc, ProcLayout,
SelfRecursive, Stmt,
};
use roc_mono::layout::{
Builtin, Layout, LayoutId, LayoutIds, TagIdIntType, TagOrClosure, UnionLayout,
};
use roc_mono::layout::{Builtin, Layout, LayoutId, LayoutIds, TagIdIntType, UnionLayout};
mod generic64;
mod object_builder;
@ -915,18 +913,9 @@ trait Backend<'a> {
}
}
Expr::Reuse {
symbol,
arguments,
tag_name,
..
symbol, arguments, ..
} => {
self.set_last_seen(*symbol, stmt);
match tag_name {
TagOrClosure::Closure(sym) => {
self.set_last_seen(*sym, stmt);
}
TagOrClosure::Tag(_) => {}
}
for sym in *arguments {
self.set_last_seen(*sym, stmt);
}