diff options
Diffstat (limited to 'src/abi/stack.h')
-rw-r--r-- | src/abi/stack.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/abi/stack.h b/src/abi/stack.h index 68ac7f08a..265a7af6e 100644 --- a/src/abi/stack.h +++ b/src/abi/stack.h @@ -128,10 +128,10 @@ getStackSpace(Index local, Function* func, Index size, Module& wasm) { // no need to restore the old stack value, we're gone anyhow } else { // save the return value - auto temp = builder.addVar(func, func->result); + auto temp = builder.addVar(func, func->sig.results); block->list.push_back(builder.makeLocalSet(temp, func->body)); block->list.push_back(makeStackRestore()); - block->list.push_back(builder.makeLocalGet(temp, func->result)); + block->list.push_back(builder.makeLocalGet(temp, func->sig.results)); } block->finalize(); func->body = block; |