summaryrefslogtreecommitdiff
path: root/src/tools/wast2wasm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wast2wasm.cc')
-rw-r--r--src/tools/wast2wasm.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wast2wasm.cc b/src/tools/wast2wasm.cc
index 6c84d66c..eb5ea041 100644
--- a/src/tools/wast2wasm.cc
+++ b/src/tools/wast2wasm.cc
@@ -237,7 +237,7 @@ int ProgramMain(int argc, char** argv) {
&s_write_binary_spec_options);
} else {
MemoryWriter writer;
- Module* module = get_first_module(script);
+ const Module* module = script->GetFirstModule();
if (module) {
result =
write_binary_module(&writer, module, &s_write_binary_options);