summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools/wasm-opt.cpp2
-rw-r--r--src/wasm-interpreter.h2
2 files changed, 2 insertions, 2 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();
}
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index b06afb1a1..a8eda4e8f 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -692,6 +692,7 @@ private:
// stack traces.
std::vector<Name> functionStack;
+public:
// Call a function, starting an invocation.
Literal callFunction(Name name, LiteralList& arguments) {
// if the last call ended in a jump up the stack, it might have left stuff for us to clean up here
@@ -700,7 +701,6 @@ private:
return callFunctionInternal(name, arguments);
}
-public:
// Internal function call. Must be public so that callTable implementations can use it (refactor?)
Literal callFunctionInternal(Name name, LiteralList& arguments) {