summaryrefslogtreecommitdiff
path: root/src/tools/spectest-interp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/spectest-interp.cc')
-rw-r--r--src/tools/spectest-interp.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/spectest-interp.cc b/src/tools/spectest-interp.cc
index af50bfb2..aae11347 100644
--- a/src/tools/spectest-interp.cc
+++ b/src/tools/spectest-interp.cc
@@ -1382,9 +1382,9 @@ wabt::Result CommandRunner::ReadInvalidTextModule(
const std::string& header) {
std::vector<uint8_t> file_data;
wabt::Result result = ReadFile(module_filename, &file_data);
- std::unique_ptr<WastLexer> lexer = WastLexer::CreateBufferLexer(
- module_filename, file_data.data(), file_data.size());
Errors errors;
+ std::unique_ptr<WastLexer> lexer = WastLexer::CreateBufferLexer(
+ module_filename, file_data.data(), file_data.size(), &errors);
if (Succeeded(result)) {
std::unique_ptr<wabt::Module> module;
WastParseOptions options(s_features);