summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s2wasm.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index 978cbad2f..d51c90e5e 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -570,10 +570,8 @@ private:
auto typeName = cashew::IString((std::string("FUNCSIG_") + getSig(call)).c_str(), false);
if (wasm.functionTypesMap.count(typeName) == 0) {
auto type = allocator.alloc<FunctionType>();
+ *type = sigToFunctionType(getSig(curr));
type->name = typeName;
- for (auto operand : call->operands) {
- type->params.push_back(operand->type);
- }
wasm.addFunctionType(type);
call->fullType = type;
} else {