Skip to content

Commit 663a47b

Browse files
committed
reverting
1 parent c89993d commit 663a47b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/passes/MultiMemoryLowering.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,6 @@ struct MultiMemoryLowering : public Pass {
385385
createMemoryGrowFunctions();
386386
removeExistingMemories();
387387
addCombinedMemory();
388-
updateMemoryExports();
389388

390389
Replacer(*this, *wasm).run(getPassRunner(), wasm);
391390
}
@@ -657,14 +656,6 @@ struct MultiMemoryLowering : public Pass {
657656
memory->max = totalMaxPages;
658657
wasm->addMemory(std::move(memory));
659658
}
660-
661-
void updateMemoryExports() {
662-
for (auto& exp : wasm->exports) {
663-
if (exp->kind == ExternalKind::Memory) {
664-
exp->value = combinedMemory;
665-
}
666-
}
667-
}
668659
};
669660

670661
Pass* createMultiMemoryLoweringPass() { return new MultiMemoryLowering(false); }

0 commit comments

Comments
 (0)