summaryrefslogtreecommitdiff
path: root/src/ir/module-splitting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/module-splitting.cpp')
-rw-r--r--src/ir/module-splitting.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir/module-splitting.cpp b/src/ir/module-splitting.cpp
index 68496045f..7f12269f8 100644
--- a/src/ir/module-splitting.cpp
+++ b/src/ir/module-splitting.cpp
@@ -247,6 +247,9 @@ TableSlotManager::Slot TableSlotManager::getSlot(RefFunc* entry) {
addSlot(entry->func, newSlot);
if (activeTable->initial <= newSlot.index) {
activeTable->initial = newSlot.index + 1;
+ if (module.dylinkSection) {
+ module.dylinkSection->tableSize = activeTable->initial;
+ }
}
if (activeTable->max <= newSlot.index) {
activeTable->max = newSlot.index + 1;