Skip to content

Commit

Permalink
refactor: remove unnecessary stack_unwind call
Browse files Browse the repository at this point in the history
  • Loading branch information
skanehira committed Apr 23, 2023
1 parent 359a6ff commit a671234
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/execution/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,8 @@ impl Runtime {
.labels
.pop()
.with_context(|| Error::LabelPopError("else".into()))?;
let Label { pc, sp, arity, .. } = label;
let Label { pc, .. } = label;
frame.pc = pc as isize;
stack_unwind(stack, sp, arity)?;
}
Instruction::Block(block) => {
let arity = block.block_type.result_count();
Expand Down

0 comments on commit a671234

Please sign in to comment.