We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c89993d commit 663a47bCopy full SHA for 663a47b
src/passes/MultiMemoryLowering.cpp
@@ -385,7 +385,6 @@ struct MultiMemoryLowering : public Pass {
385
createMemoryGrowFunctions();
386
removeExistingMemories();
387
addCombinedMemory();
388
- updateMemoryExports();
389
390
Replacer(*this, *wasm).run(getPassRunner(), wasm);
391
}
@@ -657,14 +656,6 @@ struct MultiMemoryLowering : public Pass {
657
656
memory->max = totalMaxPages;
658
wasm->addMemory(std::move(memory));
659
660
-
661
- void updateMemoryExports() {
662
- for (auto& exp : wasm->exports) {
663
- if (exp->kind == ExternalKind::Memory) {
664
- exp->value = combinedMemory;
665
- }
666
667
668
};
669
670
Pass* createMultiMemoryLoweringPass() { return new MultiMemoryLowering(false); }
0 commit comments