proceed is a jump instruction

This commit is contained in:
Mark Thom
2017-11-04 10:23:58 -06:00
parent d6af02f8c6
commit a70c100e0d
2 changed files with 2 additions and 5 deletions

View File

@@ -457,6 +457,7 @@ impl ControlInstruction {
&ControlInstruction::ThrowCall => true,
&ControlInstruction::ThrowExecute => true,
&ControlInstruction::Goto(_, _) => true,
&ControlInstruction::Proceed => true,
_ => false
}
}

View File

@@ -412,11 +412,7 @@ impl Machine {
&Line::Control(ref ctrl_instr) if ctrl_instr.is_jump_instr() => {
self.record_var_places(cn, alloc_locs, heap_locs);
cn += 1;
},
&Line::BuiltIn(BuiltInInstruction::IsAtomic(_))
| &Line::BuiltIn(BuiltInInstruction::IsVar(_)) => {
self.record_var_places(cn, alloc_locs, heap_locs);
},
},
_ => {}
}