Skip to content

Commit

Permalink
Fix instruction locations for raw panics
Browse files Browse the repository at this point in the history
Changelog: fixed
  • Loading branch information
yorickpeterse committed Sep 28, 2022
1 parent b285df6 commit a419af9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vm/src/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,6 @@ impl<'a> Machine<'a> {
Opcode::Panic => {
let msg = state.context.get_register(ins.arg(0));

state.rewind();

return Err(unsafe { InkoString::read(&msg).to_string() });
}
Opcode::Exit => {
Expand Down

0 comments on commit a419af9

Please sign in to comment.