summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools/wasm-shell.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/wasm-shell.cpp b/src/tools/wasm-shell.cpp
index 913a7a58a..d334d3380 100644
--- a/src/tools/wasm-shell.cpp
+++ b/src/tools/wasm-shell.cpp
@@ -204,8 +204,7 @@ struct Shell {
}
ActionResult doAction(Action& act) {
- ModuleRunner* instance = instances[lastModule].get();
- assert(instance);
+ assert(instances[lastModule].get());
if (auto* invoke = std::get_if<InvokeAction>(&act)) {
auto it = instances.find(invoke->base ? *invoke->base : lastModule);
if (it == instances.end()) {