summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm-linker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-linker.cpp b/src/wasm-linker.cpp
index bf65ef615..066ed355a 100644
--- a/src/wasm-linker.cpp
+++ b/src/wasm-linker.cpp
@@ -363,7 +363,7 @@ void Linker::makeDynCallThunks() {
args.push_back(wasmBuilder.makeGetLocal(i + 1, funcType->params[i]));
}
Expression* call = wasmBuilder.makeCallIndirect(funcType, fptr, std::move(args));
- f->body = funcType->result == none ? call : wasmBuilder.makeReturn(call);
+ f->body = call;
out.wasm.addFunction(f);
exportFunction(f->name, true);
}