diff --git a/lib/fizzy/execute.cpp b/lib/fizzy/execute.cpp index 089013ca3..c162dc436 100644 --- a/lib/fizzy/execute.cpp +++ b/lib/fizzy/execute.cpp @@ -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: