Skip to content

Commit

Permalink
baseline: Implement SELFDESTRUCT, mark default case unreachable
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Dec 17, 2020
1 parent 23c8838 commit dfd1d96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/evmone/baseline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,11 @@ evmc_result baseline_execute(evmc_vm* /*vm*/, const evmc_host_interface* host,
case OP_INVALID:
state->status = EVMC_INVALID_INSTRUCTION;
goto exit;
case OP_SELFDESTRUCT:
state->status = selfdestruct(*state);
goto exit;
default:
INTX_UNREACHABLE();
}

++pc;
Expand Down

0 comments on commit dfd1d96

Please sign in to comment.