diff options
Diffstat (limited to 'src/wasm-linker.cpp')
-rw-r--r-- | src/wasm-linker.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wasm-linker.cpp b/src/wasm-linker.cpp index 9e968598a..1631e17a9 100644 --- a/src/wasm-linker.cpp +++ b/src/wasm-linker.cpp @@ -50,6 +50,7 @@ void Linker::ensureImport(Name target, std::string signature) { import->name = import->base = target; import->module = ENV; import->type = ensureFunctionType(signature, &out.wasm); + import->kind = Import::Function; out.wasm.addImport(import); } } @@ -339,6 +340,7 @@ void Linker::emscriptenGlue(std::ostream& o) { import->name = import->base = curr->target; import->module = ENV; import->type = ensureFunctionType(getSig(curr), &parent->out.wasm); + import->kind = Import::Function; parent->out.wasm.addImport(import); } } |