diff options
author | Ben Smith <binjimin@gmail.com> | 2018-08-07 08:49:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-07 08:49:49 -0700 |
commit | 221a39bb62a8984f894331aa5081957d332fd353 (patch) | |
tree | 6da5a05c588e23866d154e353d4340561a4e903f /src/tools/spectest-interp.cc | |
parent | ea279ce6f5e02411528344ddb1fdb227adf296e8 (diff) | |
download | wabt-221a39bb62a8984f894331aa5081957d332fd353.tar.gz wabt-221a39bb62a8984f894331aa5081957d332fd353.tar.bz2 wabt-221a39bb62a8984f894331aa5081957d332fd353.zip |
Pass Option structs by const reference (#888)
Diffstat (limited to 'src/tools/spectest-interp.cc')
-rw-r--r-- | src/tools/spectest-interp.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/spectest-interp.cc b/src/tools/spectest-interp.cc index 8d211d22..d7ff4e4c 100644 --- a/src/tools/spectest-interp.cc +++ b/src/tools/spectest-interp.cc @@ -1073,7 +1073,7 @@ wabt::Result CommandRunner::ReadInvalidTextModule(string_view module_filename, ValidateOptions options(s_features); // Don't do a full validation, just validate the function signatures. result = - ValidateFuncSignatures(lexer.get(), module, error_handler, &options); + ValidateFuncSignatures(lexer.get(), module, error_handler, options); } } return result; @@ -1095,8 +1095,8 @@ static wabt::Result ReadModule(string_view module_filename, const bool kFailOnCustomSectionError = true; ReadBinaryOptions options(s_features, s_log_stream.get(), kReadDebugNames, kStopOnFirstError, kFailOnCustomSectionError); - result = ReadBinaryInterp(env, file_data.data(), file_data.size(), - &options, error_handler, out_module); + result = ReadBinaryInterp(env, file_data.data(), file_data.size(), options, + error_handler, out_module); if (Succeeded(result)) { if (s_verbose) { |