summaryrefslogtreecommitdiff
path: root/src/tools/wasm-ctor-eval.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wasm-ctor-eval.cpp')
-rw-r--r--src/tools/wasm-ctor-eval.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/wasm-ctor-eval.cpp b/src/tools/wasm-ctor-eval.cpp
index 54324ae5a..701968dcd 100644
--- a/src/tools/wasm-ctor-eval.cpp
+++ b/src/tools/wasm-ctor-eval.cpp
@@ -282,7 +282,7 @@ struct CtorEvalExternalInterface : EvallingModuleInstance::ExternalInterface {
Literals callTable(Name tableName,
Index index,
- Signature sig,
+ HeapType sig,
LiteralList& arguments,
Type result,
EvallingModuleInstance& instance) override {
@@ -322,7 +322,7 @@ struct CtorEvalExternalInterface : EvallingModuleInstance::ExternalInterface {
// if this is one of our functions, we can call it; if it was
// imported, fail
auto* func = wasm->getFunction(name);
- if (func->getSig() != sig) {
+ if (func->type != sig) {
throw FailToEvalException(
std::string("callTable signature mismatch: ") + name.str);
}