diff options
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r-- | src/asm2wasm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h index 5f6cee558..fa83a9cd2 100644 --- a/src/asm2wasm.h +++ b/src/asm2wasm.h @@ -1367,8 +1367,9 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) { for (unsigned i = 0; i < args->size(); i++) { ret->operands.push_back(process(args[i])); } - ret->fullType = getFunctionType(astStackHelper.getParent(), ret->operands); - ret->type = ret->fullType->result; + auto* fullType = getFunctionType(astStackHelper.getParent(), ret->operands); + ret->fullType = fullType->name; + ret->type = fullType->result; callIndirects[ret] = target[1][1]->getIString(); // we need to fix this up later, when we know how asm function tables are layed out inside the wasm table. return ret; } else if (what == RETURN) { |