diff options
Diffstat (limited to 'src/asm2wasm.h')
-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) { |