fix(tvix/eval): reduce scope depth in scope module

Change-Id: If32f9e4c9212f20a39baa15d479ff1387c17570d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6500
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2022-09-11 15:00:06 +03:00 committed by tazjin
parent 675bd36ea5
commit 677d4e6881
2 changed files with 2 additions and 2 deletions

View file

@ -1067,8 +1067,6 @@ impl Compiler<'_, '_> {
if popcount > 0 {
self.push_op(OpCode::OpCloseScope(Count(popcount)), node);
}
self.scope_mut().scope_depth -= 1;
}
/// Open a new lambda context within which to compile a function,

View file

@ -310,6 +310,8 @@ impl Scope {
}
}
self.scope_depth -= 1;
(pops, unused_spans)
}
}