Skip to content

Commit

Permalink
Simplify end implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Nov 10, 2020
1 parent 215272e commit 225275a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/fizzy/execute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,8 @@ ExecutionResult execute(Instance& instance, FuncIdx func_idx, const Value* args,
}
case Instr::end:
{
// End execution if it's a final end instruction.
if (pc == &code.instructions[code.instructions.size()])
goto end;
break;
assert(pc == &code.instructions[code.instructions.size()]);
goto end;
}
case Instr::br:
case Instr::br_if:
Expand Down

0 comments on commit 225275a

Please sign in to comment.