summaryrefslogtreecommitdiff
path: root/src/tools/wasm-opt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wasm-opt.cpp')
-rw-r--r--src/tools/wasm-opt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wasm-opt.cpp b/src/tools/wasm-opt.cpp
index 0603ae93c..35d5b6787 100644
--- a/src/tools/wasm-opt.cpp
+++ b/src/tools/wasm-opt.cpp
@@ -80,7 +80,7 @@ struct ExecutionResults {
arguments.push_back(Literal(param));
}
try {
- return instance.callFunctionInternal(func->name, arguments);
+ return instance.callFunction(func->name, arguments);
} catch (const TrapException&) {
return Literal();
}