minor tweak
This commit is contained in:
@@ -360,15 +360,13 @@ impl<'a> CodeGenerator<'a> {
|
|||||||
{
|
{
|
||||||
for term in iter {
|
for term in iter {
|
||||||
if let TermRef::Var(_, reg_cell, var) = term {
|
if let TermRef::Var(_, reg_cell, var) = term {
|
||||||
let mut status =
|
let mut status = vs.entry(var)
|
||||||
vs.entry(var)
|
.or_insert((TermStatus::New, Vec::new()));
|
||||||
.or_insert((TermStatus::New, Vec::new()));
|
|
||||||
|
|
||||||
status.1.push(reg_cell);
|
status.1.push(reg_cell);
|
||||||
|
|
||||||
match status.0 {
|
match status.0 {
|
||||||
TermStatus::Old | TermStatus::Recurrent =>
|
TermStatus::Old => status.0 = TermStatus::Recurrent,
|
||||||
status.0 = TermStatus::Recurrent,
|
|
||||||
_ => {}
|
_ => {}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user