diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-06 15:50:41 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-06 15:50:41 -0800 |
commit | 9053bd501b9e69c044410900fdeac25bd38b078e (patch) | |
tree | b25875074e38b5e51ce58304cac7809ab503cddc /src | |
parent | fe7f311a4365ac5740ba89fdfaea706ddd2c8b7a (diff) | |
download | binaryen-9053bd501b9e69c044410900fdeac25bd38b078e.tar.gz binaryen-9053bd501b9e69c044410900fdeac25bd38b078e.tar.bz2 binaryen-9053bd501b9e69c044410900fdeac25bd38b078e.zip |
get proper full type, including result, for indirect call types #77
Diffstat (limited to 'src')
-rw-r--r-- | src/s2wasm.h | 4 |
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 { |