diff options
Diffstat (limited to 'src/passes/FuncCastEmulation.cpp')
-rw-r--r-- | src/passes/FuncCastEmulation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/FuncCastEmulation.cpp b/src/passes/FuncCastEmulation.cpp index e63375f2b..d8b9f9b1d 100644 --- a/src/passes/FuncCastEmulation.cpp +++ b/src/passes/FuncCastEmulation.cpp @@ -199,11 +199,11 @@ private: } // The item in the table may be a function or a function import. auto* func = module->getFunction(name); - Type type = func->sig.results; + Type type = func->getResults(); Builder builder(*module); std::vector<Expression*> callOperands; Index i = 0; - for (const auto& param : func->sig.params) { + for (const auto& param : func->getParams()) { callOperands.push_back( fromABI(builder.makeLocalGet(i++, Type::i64), param, module)); } |