We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3372ff commit c72a209Copy full SHA for c72a209
src/passes/LLVM.cpp
@@ -42,6 +42,9 @@ struct LLVMOpt : public Pass {
42
auto features = module->features;
43
44
Builder builder(*module);
45
+
46
+ // Ensure there is a memory.
47
+ module->memory.exists = true;
48
// Ensure the memory is exported, which wasm2c requires.
49
if (!module->getExportOrNull("memory")) {
50
module->addExport(builder.makeExport("memory", "0", ExternalKind::Memory));
0 commit comments