copy attribute list in get_atts

This commit is contained in:
Mark Thom
2019-02-03 16:10:12 -07:00
parent 3cfbbb23a3
commit 8a3a79de3c
3 changed files with 24 additions and 20 deletions

View File

@@ -97,8 +97,6 @@ impl MachineState {
};
}
// from the assumptions active at the call site in bind, we know:
// if addr is a Ref, it precedes h in the heap.
fn bind_attr_var(&mut self, h: usize, addr: Addr) {
match addr.as_var() {
Some(Ref::HeapCell(hc)) => {