diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-05-06 15:31:47 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-05-06 16:51:32 -0700 |
commit | ffb9e4b9cfac5091dfe19b9b5215c43bd0f98e72 (patch) | |
tree | 6a6320d42db20730620c6212846bef53e2c22143 /src/wasm.h | |
parent | e4d6be7f1a92bd8809777e59583e2d7544b065a0 (diff) | |
download | binaryen-ffb9e4b9cfac5091dfe19b9b5215c43bd0f98e72.tar.gz binaryen-ffb9e4b9cfac5091dfe19b9b5215c43bd0f98e72.tar.bz2 binaryen-ffb9e4b9cfac5091dfe19b9b5215c43bd0f98e72.zip |
add a return type parameter to call and call_import in the C API. we need it since we don't know the type while building functions
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h index dff0bcd5a..049dc2e30 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -1022,6 +1022,10 @@ public: ExpressionList operands; FunctionType *fullType; Expression *target; + + void finalize() { + type = fullType->result; + } }; class GetLocal : public SpecificExpression<Expression::GetLocalId> { |