don't hold on to popped or frames

This commit is contained in:
Mark Thom
2020-01-20 20:59:30 -07:00
parent 6be2d8ccf2
commit 40bf5bc75f
3 changed files with 6 additions and 15 deletions

View File

@@ -2077,12 +2077,6 @@ impl MachineState {
self.fail = true;
}
pub(super) fn truncate_stack(&mut self) {
if self.b > self.e {
self.stack.truncate_to_frame(self.b);
}
}
pub(crate) fn is_cyclic_term(&self, addr: Addr) -> bool {
let mut seen = IndexSet::new();
let mut fail = false;