diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-23 15:55:31 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-23 15:55:58 -0800 |
commit | b055995ff2cb99d10d5be3ffd9ed3757b499ede9 (patch) | |
tree | d7a147f7f185bb6d661698127463ca38bcce5323 /src | |
parent | df0e9b04330a0df3aab31856ad4567312a8affcd (diff) | |
download | binaryen-b055995ff2cb99d10d5be3ffd9ed3757b499ede9.tar.gz binaryen-b055995ff2cb99d10d5be3ffd9ed3757b499ede9.tar.bz2 binaryen-b055995ff2cb99d10d5be3ffd9ed3757b499ede9.zip |
handle indirect calls with no parent in asm2wasm #36
Diffstat (limited to 'src')
-rw-r--r-- | src/asm2wasm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h index 95638c9dc..d3d76ff83 100644 --- a/src/asm2wasm.h +++ b/src/asm2wasm.h @@ -245,7 +245,7 @@ private: FunctionType *getFunctionType(Ref parent, ExpressionList& operands) { // generate signature - WasmType result = detectWasmType(parent, nullptr); + WasmType result = !!parent ? detectWasmType(parent, nullptr) : none; std::string str = "FUNCSIG$"; str += getSig(result); for (auto operand : operands) { |