diff options
author | walkingeyerobot <mitch@thefoley.net> | 2024-05-22 16:29:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-22 13:29:33 -0700 |
commit | 06cbe01f2774955ed3f23994b3ea1db58e43a4d8 (patch) | |
tree | 0c7e44c8ef650472d8571580cebf5a7ac9693b8e | |
parent | 772e57234c3cba9bdc6432d42017f7c22b3f6e56 (diff) | |
download | binaryen-06cbe01f2774955ed3f23994b3ea1db58e43a4d8.tar.gz binaryen-06cbe01f2774955ed3f23994b3ea1db58e43a4d8.tar.bz2 binaryen-06cbe01f2774955ed3f23994b3ea1db58e43a4d8.zip |
[NFC] Fix unused variable warning (#6624)
-rw-r--r-- | src/tools/wasm-shell.cpp | 3 |
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()) { |