summaryrefslogtreecommitdiff
path: root/src/tools/wasm-validate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wasm-validate.cc')
-rw-r--r--src/tools/wasm-validate.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/wasm-validate.cc b/src/tools/wasm-validate.cc
index 4cbd5605..54c13daa 100644
--- a/src/tools/wasm-validate.cc
+++ b/src/tools/wasm-validate.cc
@@ -85,9 +85,8 @@ int ProgramMain(int argc, char** argv) {
result = ReadBinaryIr(s_infile.c_str(), file_data.data(), file_data.size(),
options, &error_handler, &module);
if (Succeeded(result)) {
- WastLexer* lexer = nullptr;
ValidateOptions options(s_features);
- result = ValidateModule(lexer, &module, &error_handler, options);
+ result = ValidateModule(&module, &error_handler, options);
}
}
return result != Result::Ok;