Skip to content

Commit c72a209

Browse files
committed
works!
1 parent c3372ff commit c72a209

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/passes/LLVM.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ struct LLVMOpt : public Pass {
4242
auto features = module->features;
4343

4444
Builder builder(*module);
45+
46+
// Ensure there is a memory.
47+
module->memory.exists = true;
4548
// Ensure the memory is exported, which wasm2c requires.
4649
if (!module->getExportOrNull("memory")) {
4750
module->addExport(builder.makeExport("memory", "0", ExternalKind::Memory));

0 commit comments

Comments
 (0)